From cff41b1e30c92d68621852a35fb478943270efac Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 27 Jul 2023 10:50:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=BB=91=E5=AE=9A=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=8F=90=E7=A4=BA=E3=80=81=E8=AE=BF=E9=97=AE?= =?UTF-8?q?=E8=8A=82=E7=82=B9IP=E6=98=BE=E7=A4=BA=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=86=85=E5=AE=B9=E6=94=AF=E6=8C=81=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_mismatch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/nodes/http_request_mismatch.go b/internal/nodes/http_request_mismatch.go index 5cd376f..c4fde2f 100644 --- a/internal/nodes/http_request_mismatch.go +++ b/internal/nodes/http_request_mismatch.go @@ -37,7 +37,7 @@ func (this *HTTPRequest) doMismatch() { if globalServerConfig != nil && globalServerConfig.HTTPAll.MatchDomainStrictly { // 是否正在访问IP if globalServerConfig.HTTPAll.NodeIPShowPage && net.ParseIP(this.ReqHost) != nil { - _, _ = this.writer.WriteString(globalServerConfig.HTTPAll.NodeIPPageHTML) + _, _ = this.writer.WriteString(this.Format(globalServerConfig.HTTPAll.NodeIPPageHTML)) return } @@ -61,7 +61,7 @@ func (this *HTTPRequest) doMismatch() { if mismatchAction.Options != nil { this.writer.Header().Set("Content-Type", "text/html; charset=utf-8") this.writer.WriteHeader(mismatchAction.Options.GetInt("statusCode")) - _, _ = this.writer.Write([]byte(mismatchAction.Options.GetString("contentHTML"))) + _, _ = this.writer.Write([]byte(this.Format(mismatchAction.Options.GetString("contentHTML")))) } else { http.Error(this.writer, "404 page not found: '"+this.URL()+"'", http.StatusNotFound) }