mirror of
https://github.com/daeuniverse/dae.git
synced 2025-07-13 17:29:09 +07:00
feat: support to give fixed ip for tcp_check_url and udp_check_dns
This commit is contained in:
@ -321,6 +321,13 @@ func FuzzyDecode(to interface{}, val string) bool {
|
||||
default:
|
||||
return false
|
||||
}
|
||||
case reflect.Slice:
|
||||
switch v.Interface().(type) {
|
||||
case []string:
|
||||
v.Set(reflect.ValueOf(strings.Split(val, ",")))
|
||||
default:
|
||||
return false
|
||||
}
|
||||
default:
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user