From 61a25e73156cabf5613e4660f229c4188b1680e1 Mon Sep 17 00:00:00 2001 From: bboysoul <31786046+bboysoulcn@users.noreply.github.com> Date: Tue, 29 Jun 2021 13:55:45 +0800 Subject: [PATCH] Update https.go --- server/proxy/https.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/proxy/https.go b/server/proxy/https.go index 873e826..06a77ed 100644 --- a/server/proxy/https.go +++ b/server/proxy/https.go @@ -198,6 +198,7 @@ func buildMyHttpsRequest(hostName string, c net.Conn) *http.Request { addr = strings.Split(addr, ":")[0] r.Header.Set("X-Forwarded-For", addr) r.Header.Set("X-Real-IP", addr) + r.Header.Set("X-IP", addr) return r }