mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-19 20:29:20 +07:00
feat: support to mark direct traffic (#24)
This commit is contained in:
@ -283,9 +283,9 @@ func FuzzyDecode(to interface{}, val string) bool {
|
||||
v.SetUint(i)
|
||||
case reflect.Bool:
|
||||
switch strings.ToLower(val) {
|
||||
case "true", "1", "y", "yes":
|
||||
case "true", "t", "1", "y", "yes", "on":
|
||||
v.SetBool(true)
|
||||
case "false", "0", "n", "no":
|
||||
case "false", "f", "0", "n", "no", "off":
|
||||
v.SetBool(false)
|
||||
default:
|
||||
return false
|
||||
|
Reference in New Issue
Block a user