From e82ff8e2e6ee3d05c612272a9904172b63140d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Thu, 6 Jun 2024 22:14:10 +0800 Subject: [PATCH] Fix get source address from `X-Forwarded-For` --- protocol/http/addr.go | 1 + 1 file changed, 1 insertion(+) diff --git a/protocol/http/addr.go b/protocol/http/addr.go index 61b673c..ebef54c 100644 --- a/protocol/http/addr.go +++ b/protocol/http/addr.go @@ -15,6 +15,7 @@ func SourceAddress(request *http.Request) M.Socksaddr { originAddr := M.ParseAddr(from) if originAddr.IsValid() { address.Addr = originAddr + break } } }