mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-02-08 22:45:38 +08:00
服务分组增加特殊页面设置
This commit is contained in:
@@ -143,6 +143,12 @@ func (this *ServerConfig) Init() error {
|
||||
if groupWeb.RemoteAddr != nil && groupWeb.RemoteAddr.IsPrior {
|
||||
this.Web.RemoteAddr = groupWeb.RemoteAddr
|
||||
}
|
||||
|
||||
// pages
|
||||
if len(groupWeb.Pages) > 0 || (groupWeb.Shutdown != nil && groupWeb.Shutdown.IsOn) {
|
||||
this.Web.Pages = groupWeb.Pages
|
||||
this.Web.Shutdown = groupWeb.Shutdown
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user