all: upd go, chlog, tools
This commit is contained in:
@@ -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),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"},
|
||||
}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user