mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 01:07:10 +00:00
fix: HTTP proxy variable shadowing
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user