mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-31 23:56:36 +08:00
找不到匹配的域名时可以指定默认域名、指定不匹配时的处理动作
This commit is contained in:
@@ -195,6 +195,11 @@ func (this *ServerConfig) MatchName(name string) bool {
|
||||
|
||||
// 判断是否严格匹配
|
||||
func (this *ServerConfig) MatchNameStrictly(name string) bool {
|
||||
for _, serverName := range this.AliasServerNames {
|
||||
if serverName == name {
|
||||
return true
|
||||
}
|
||||
}
|
||||
for _, serverName := range this.ServerNames {
|
||||
if serverName.Name == name {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user