From 3c4d626e91ffaf6e694f9e7715bcb039e02f20cf Mon Sep 17 00:00:00 2001 From: bboysoul <31786046+bboysoulcn@users.noreply.github.com> Date: Tue, 29 Jun 2021 12:33:34 +0800 Subject: [PATCH] Update https.go --- server/proxy/https.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/proxy/https.go b/server/proxy/https.go index b7ea526..ef25f0b 100644 --- a/server/proxy/https.go +++ b/server/proxy/https.go @@ -192,8 +192,8 @@ func buildMyHttpsRequest(hostName string, c net.Conn) *http.Request { r.URL.Scheme = "https" r.Host = hostName logs.Trace("start add header") - r.Header.Set("X-Forwarded-For", '1.1.1.1') - r.Header.Set("X-Real-IP", '1.1.1.1') + r.Header.Set("X-Forwarded-For", "1.1.1.1") + r.Header.Set("X-Real-IP", "1.1.1.1") return r }