* clients: remove WHOIS info for manually-added clients

This commit is contained in:
Simon Zolin
2020-01-09 16:42:38 +03:00
parent 688a5d84c8
commit 87bcb67f8f
3 changed files with 2 additions and 21 deletions

View File

@@ -16,8 +16,6 @@ type clientJSON struct {
SafeSearchEnabled bool `json:"safesearch_enabled"`
SafeBrowsingEnabled bool `json:"safebrowsing_enabled"`
WhoisInfo map[string]interface{} `json:"whois_info"`
UseGlobalBlockedServices bool `json:"use_global_blocked_services"`
BlockedServices []string `json:"blocked_services"`
@@ -116,11 +114,6 @@ func clientToJSON(c *Client) clientJSON {
Upstreams: c.Upstreams,
}
cj.WhoisInfo = make(map[string]interface{})
for _, wi := range c.WhoisInfo {
cj.WhoisInfo[wi[0]] = wi[1]
}
return cj
}