mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-02-23 04:53:29 +08:00
fix: HTTP proxy variable shadowing
This commit is contained in:
parent
8ff56b5bb8
commit
df01582996
@ -51,7 +51,8 @@ func HandleConn(c net.Conn, tunnel C.Tunnel, cache *lru.LruCache[string, bool],
|
|||||||
var resp *http.Response
|
var resp *http.Response
|
||||||
|
|
||||||
if !trusted {
|
if !trusted {
|
||||||
resp, user := authenticate(request, cache)
|
var user string
|
||||||
|
resp, user = authenticate(request, cache)
|
||||||
additions = append(additions, inbound.WithInUser(user))
|
additions = append(additions, inbound.WithInUser(user))
|
||||||
trusted = resp == nil
|
trusted = resp == nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user