反向代理源站实现使用域名分组

This commit is contained in:
刘祥超
2021-09-20 11:54:21 +08:00
parent bf57bc5a1c
commit 1f6be53d3d
18 changed files with 431 additions and 186 deletions

View File

@@ -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)
}
}