Update protocol.go

This commit is contained in:
RPRX
2026-06-17 14:08:35 +00:00
committed by GitHub
parent 325b57dc24
commit c07f7f94cb
-2
View File
@@ -209,8 +209,6 @@ func (s *ServerSession) handshake5(nMethod byte, reader io.Reader, writer net.Co
}
responsePort = net.Port(udpHub.LocalAddr().(*net.UDPAddr).Port)
expectedRemote := &gonet.UDPAddr{}
// if request address is a domain(udp associate should not have request domain)
// treat it as unspecified
if request.Address.Family().IsDomain() || request.Address.IP().IsUnspecified() {
expectedRemote.IP = writer.RemoteAddr().(*net.TCPAddr).IP // unix?
} else {