feat: support to give fixed ip for tcp_check_url and udp_check_dns

This commit is contained in:
mzz2017
2023-04-29 01:08:46 +08:00
parent 7948ba044c
commit 9493b9a0aa
4 changed files with 60 additions and 17 deletions

View File

@ -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
}