feat(dns): support fixed domain ttl (#100)

* feat(dns): support fixed domain ttl

* docs
This commit is contained in:
mzz
2023-05-30 22:10:32 +08:00
committed by GitHub
parent 2a8f8f9010
commit b936e7ada4
9 changed files with 149 additions and 21 deletions

View File

@ -466,3 +466,11 @@ func IsValidHttpMethod(method string) bool {
return false
}
}
func StringSet(list []string) map[string]struct{} {
m := make(map[string]struct{})
for _, s := range list {
m[s] = struct{}{}
}
return m
}