Use urlfilter format in rebinding allow list

This commit is contained in:
Reinaldo de Souza Jr
2020-12-05 16:49:32 +01:00
parent fcb582679e
commit bad1c6acdc
6 changed files with 66 additions and 27 deletions

View File

@@ -796,9 +796,9 @@ func TestBlockedDNSRebinding(t *testing.T) {
}
s.conf.RebindingProtectionEnabled = true
s.conf.RebindingAllowedHosts = []string{
"nip.io.",
}
s.rebinding, _ = newRebindChecker([]string{
"||nip.io^",
})
reply, err = dns.Exchange(&req, addr.String())
if err != nil {
t.Fatalf("Couldn't talk to server %s: %s", addr, err)