Fix get source address from X-Forwarded-For

This commit is contained in:
世界 2024-06-06 22:14:10 +08:00
parent ba68e017a9
commit e82ff8e2e6
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -15,6 +15,7 @@ func SourceAddress(request *http.Request) M.Socksaddr {
originAddr := M.ParseAddr(from)
if originAddr.IsValid() {
address.Addr = originAddr
break
}
}
}