mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-14 01:40:32 +07:00
feat: add lan_snat_direct option for non-transparent-bridge user (#14)
This commit is contained in:
@ -273,11 +273,12 @@ func FuzzyDecode(to interface{}, val string) bool {
|
||||
}
|
||||
v.SetUint(i)
|
||||
case reflect.Bool:
|
||||
if val == "true" || val == "1" {
|
||||
switch strings.ToLower(val) {
|
||||
case "true", "1", "y", "yes":
|
||||
v.SetBool(true)
|
||||
} else if val == "false" || val == "0" {
|
||||
case "false", "0", "n", "no":
|
||||
v.SetBool(false)
|
||||
} else {
|
||||
default:
|
||||
return false
|
||||
}
|
||||
case reflect.String:
|
||||
|
Reference in New Issue
Block a user