mirror of
https://github.com/XTLS/Xray-core.git
synced 2026-07-04 10:48:49 +00:00
Update protocol.go
This commit is contained in:
@@ -209,8 +209,6 @@ func (s *ServerSession) handshake5(nMethod byte, reader io.Reader, writer net.Co
|
|||||||
}
|
}
|
||||||
responsePort = net.Port(udpHub.LocalAddr().(*net.UDPAddr).Port)
|
responsePort = net.Port(udpHub.LocalAddr().(*net.UDPAddr).Port)
|
||||||
expectedRemote := &gonet.UDPAddr{}
|
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() {
|
if request.Address.Family().IsDomain() || request.Address.IP().IsUnspecified() {
|
||||||
expectedRemote.IP = writer.RemoteAddr().(*net.TCPAddr).IP // unix?
|
expectedRemote.IP = writer.RemoteAddr().(*net.TCPAddr).IP // unix?
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user