Allow underscore character in hostSNI matcher
This commit is contained in:
parent
2087e11f55
commit
ddb32ef86f
2 changed files with 6 additions and 1 deletions
|
@ -743,6 +743,11 @@ func Test_HostSNI(t *testing.T) {
|
|||
ruleHosts: []string{"foo.bar"},
|
||||
serverName: "foo.bar",
|
||||
},
|
||||
{
|
||||
desc: "Matching hosts with subdomains with _",
|
||||
ruleHosts: []string{"foo_bar.example.com"},
|
||||
serverName: "foo_bar.example.com",
|
||||
},
|
||||
{
|
||||
desc: "Matching IPv4",
|
||||
ruleHosts: []string{"127.0.0.1"},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue