Adds the support for IPv6 in the TCP HostSNI matcher
This commit is contained in:
parent
e053eb6f17
commit
1a6dfe1f6b
3 changed files with 28 additions and 4 deletions
|
@ -740,7 +740,7 @@ func Test_HostSNI(t *testing.T) {
|
|||
},
|
||||
{
|
||||
desc: "Matching hosts",
|
||||
ruleHosts: []string{"foobar"},
|
||||
ruleHosts: []string{"foobar", "foo-bar.baz"},
|
||||
serverName: "foobar",
|
||||
},
|
||||
{
|
||||
|
@ -748,6 +748,16 @@ func Test_HostSNI(t *testing.T) {
|
|||
ruleHosts: []string{"foo.bar"},
|
||||
serverName: "foo.bar",
|
||||
},
|
||||
{
|
||||
desc: "Matching IPv4",
|
||||
ruleHosts: []string{"127.0.0.1"},
|
||||
serverName: "127.0.0.1",
|
||||
},
|
||||
{
|
||||
desc: "Matching IPv6",
|
||||
ruleHosts: []string{"10::10"},
|
||||
serverName: "10::10",
|
||||
},
|
||||
}
|
||||
|
||||
for _, test := range testCases {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue