mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 20:07:38 +03:00
Fix get source address from X-Forwarded-For
This commit is contained in:
parent
ba68e017a9
commit
e82ff8e2e6
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ func SourceAddress(request *http.Request) M.Socksaddr {
|
|||
originAddr := M.ParseAddr(from)
|
||||
if originAddr.IsValid() {
|
||||
address.Addr = originAddr
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue