all: upd go, chlog, tools

This commit is contained in:
Ainar Garipov
2022-04-06 18:27:21 +03:00
parent b2052f2ef1
commit d17c6c6bb3
22 changed files with 389 additions and 189 deletions

View File

@@ -249,7 +249,10 @@ func (s *Server) createProxyConfig() (proxy.Config, error) {
if ip == nil {
log.Error("Invalid bogus IP: %s", s)
} else {
proxyConfig.BogusNXDomain = append(proxyConfig.BogusNXDomain, ip)
proxyConfig.BogusNXDomain = append(
proxyConfig.BogusNXDomain,
netutil.SingleIPSubnet(ip),
)
}
}
}

View File

@@ -386,7 +386,7 @@ func TestValidateUpstreamsSet(t *testing.T) {
},
}, {
name: "invalid",
wantErr: `cannot prepare the upstream dhcp://fake.dns ([]): unsupported URL scheme: dhcp`,
wantErr: `cannot prepare the upstream dhcp://fake.dns ([]): unsupported url scheme: dhcp`,
set: []string{"dhcp://fake.dns"},
}}