fix: HTTP proxy variable shadowing

This commit is contained in:
H1JK 2024-04-27 01:05:34 +08:00
parent 8ff56b5bb8
commit df01582996

View File

@ -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
}