fix: sing内核删除用户逻辑不正确BUG

This commit is contained in:
wyx2685
2025-01-05 20:57:18 +09:00
parent 29e0d7e56e
commit c755e9800b
6 changed files with 267 additions and 247 deletions

View File

@@ -299,7 +299,7 @@ func (n *Hysteria2node) getMasqHandler(tlsconfig *server.TLSConfig, conn net.Pac
req.Header.Set("X-Forwarded-For", clientIP)
}
if !c.Masquerade.Proxy.RewriteHost {
if c.Masquerade.Proxy.RewriteHost {
req.Host = req.URL.Host
}
},