Skip to content

Commit

Permalink
fix: HTTP proxy variable shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
H1JK committed Apr 26, 2024
1 parent 8ff56b5 commit df01582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion listener/http/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func HandleConn(c net.Conn, tunnel C.Tunnel, cache *lru.LruCache[string, bool],
var resp *http.Response

if !trusted {
resp, user := authenticate(request, cache)
var user string
resp, user = authenticate(request, cache)
additions = append(additions, inbound.WithInUser(user))
trusted = resp == nil
}
Expand Down

0 comments on commit df01582

Please sign in to comment.