mirror of
https://github.com/luscis/openlan.git
synced 2025-10-20 07:44:34 +08:00
fea: config: add tests
This commit is contained in:
@@ -17,7 +17,7 @@ func (c *Crypt) IsZero() bool {
|
||||
return c.Algo == "" && c.Secret == ""
|
||||
}
|
||||
|
||||
func (c *Crypt) Default() {
|
||||
func (c *Crypt) Correct() {
|
||||
if c.Secret != "" && c.Algo == "" {
|
||||
c.Algo = "xor"
|
||||
}
|
||||
|
Reference in New Issue
Block a user