mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-19 00:40:26 +08:00
反向代理源站实现使用域名分组
This commit is contained in:
@@ -76,4 +76,8 @@ func TestMatchDomain(t *testing.T) {
|
||||
ok := MatchDomains([]string{"~^\\d+.example.com$"}, "123.example.com")
|
||||
a.IsTrue(ok)
|
||||
}
|
||||
{
|
||||
ok := MatchDomains([]string{"*"}, "example.com")
|
||||
a.IsTrue(ok)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user