Skip to content

Commit

Permalink
Fix get source address from X-Forwarded-For
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Jun 6, 2024
1 parent ba68e01 commit e82ff8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions protocol/http/addr.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ func SourceAddress(request *http.Request) M.Socksaddr {
originAddr := M.ParseAddr(from)
if originAddr.IsValid() {
address.Addr = originAddr
break
}
}
}
Expand Down

0 comments on commit e82ff8e

Please sign in to comment.