From 6cab7a21ef66dc5db77efae1f42f8f0dbebd7059 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 6 Oct 2021 16:35:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=93=E5=AD=98=E9=A2=84=E7=83=AD=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E8=AF=B7=E6=B1=82=E6=9D=A5=E6=BA=90=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E5=A2=9E=E5=8A=A0IPv6=E5=9B=9E=E8=B7=AF=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nodes/http_request_cache.go b/internal/nodes/http_request_cache.go index 6c2f5ad..1bff327 100644 --- a/internal/nodes/http_request_cache.go +++ b/internal/nodes/http_request_cache.go @@ -24,7 +24,7 @@ func (this *HTTPRequest) doCacheRead() (shouldStop bool) { } // 判断是否在预热 - if strings.HasPrefix(this.RawReq.RemoteAddr, "127.") && this.RawReq.Header.Get("X-Cache-Action") == "preheat" { + if (strings.HasPrefix(this.RawReq.RemoteAddr, "127.") || strings.HasPrefix(this.RawReq.RemoteAddr, "[::1]")) && this.RawReq.Header.Get("X-Cache-Action") == "preheat" { return }