[client] Fix IPv4-only in bind proxy (#5154)

This commit is contained in:
Viktor Liu
2026-01-23 22:15:34 +08:00
committed by GitHub
parent 269d5d1cba
commit 1a32e4c223
2 changed files with 21 additions and 6 deletions

View File

@@ -94,7 +94,9 @@ func (p *ProxyWrapper) RedirectAs(endpoint *net.UDPAddr) {
p.pausedCond.L.Lock()
p.paused = false
p.wgEndpointCurrentUsedAddr = endpoint
if endpoint != nil && endpoint.IP != nil {
p.wgEndpointCurrentUsedAddr = endpoint
}
p.pausedCond.Signal()
p.pausedCond.L.Unlock()