mirror of
https://github.com/coredns/coredns.git
synced 2026-08-20 23:08:28 -04:00
plugin/forward: Add http(2) host/authority header and TO server resolution (#8233)
This commit is contained in:
@@ -143,14 +143,22 @@ func TestSplitZone(t *testing.T) {
|
||||
"tls://127.0.0.1%example.net:854", "tls://127.0.0.1:854", "example.net",
|
||||
}, {
|
||||
"tls://127.0.0.1%example.net", "tls://127.0.0.1", "example.net",
|
||||
}, {
|
||||
"https://127.0.0.1%example.net:443", "https://127.0.0.1:443", "example.net",
|
||||
}, {
|
||||
"https://127.0.0.1%example.net", "https://127.0.0.1", "example.net",
|
||||
}, {
|
||||
"tls://127.0.0.1:854", "tls://127.0.0.1:854", "",
|
||||
}, {
|
||||
"https://127.0.0.1:443", "https://127.0.0.1:443", "",
|
||||
}, {
|
||||
"dns://127.0.0.1", "dns://127.0.0.1", "",
|
||||
}, {
|
||||
"foo%bar:baz", "foo:baz", "bar",
|
||||
}, {
|
||||
"tls://[::1%example.net]:853", "tls://[::1]:853", "example.net",
|
||||
}, {
|
||||
"https://[::1%example.net]:443", "https://[::1]:443", "example.net",
|
||||
},
|
||||
}
|
||||
for i, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user