mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-09 20:10:27 +08:00
优化代码
This commit is contained in:
@@ -72,7 +72,7 @@ func (this *HTTPRequest) doMismatch() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 处理当前连接
|
// 处理当前连接
|
||||||
if mismatchAction != nil && mismatchAction.Code == "page" {
|
if mismatchAction != nil && mismatchAction.Code == serverconfigs.DomainMismatchActionPage {
|
||||||
if mismatchAction.Options != nil {
|
if mismatchAction.Options != nil {
|
||||||
this.writer.statusCode = statusCode
|
this.writer.statusCode = statusCode
|
||||||
var contentHTML = this.Format(mismatchAction.Options.GetString("contentHTML"))
|
var contentHTML = this.Format(mismatchAction.Options.GetString("contentHTML"))
|
||||||
|
|||||||
Reference in New Issue
Block a user