mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-15 00:30:24 +08:00
路由规则增加专属域名设置
This commit is contained in:
@@ -522,6 +522,11 @@ func (this *HTTPRequest) configureWeb(web *serverconfigs.HTTPWebConfig, isTop bo
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if varMapping, isMatched := location.Match(rawPath, this.Format); isMatched {
|
if varMapping, isMatched := location.Match(rawPath, this.Format); isMatched {
|
||||||
|
// 检查专属域名
|
||||||
|
if len(location.Domains) > 0 && !configutils.MatchDomains(location.Domains, this.Host) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if len(varMapping) > 0 {
|
if len(varMapping) > 0 {
|
||||||
this.addVarMapping(varMapping)
|
this.addVarMapping(varMapping)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user