mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-04 12:27:37 +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)
|
originAddr := M.ParseAddr(from)
|
||||||
if originAddr.IsValid() {
|
if originAddr.IsValid() {
|
||||||
address.Addr = originAddr
|
address.Addr = originAddr
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue