mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
wasm: strip port from host when match host (#626)
This commit is contained in:
@@ -118,6 +118,19 @@ func TestHostMatch(t *testing.T) {
|
||||
host: "example.com",
|
||||
result: false,
|
||||
},
|
||||
{
|
||||
name: "exact port",
|
||||
config: RuleConfig[customConfig]{
|
||||
hosts: []HostMatcher{
|
||||
{
|
||||
matchType: Exact,
|
||||
host: "www.example.com",
|
||||
},
|
||||
},
|
||||
},
|
||||
host: "www.example.com:8080",
|
||||
result: true,
|
||||
},
|
||||
{
|
||||
name: "any",
|
||||
config: RuleConfig[customConfig]{
|
||||
|
||||
Reference in New Issue
Block a user