mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
use NetAddr() as hash
This commit is contained in:
parent
00fd6861a6
commit
dcd96df058
@ -39,7 +39,7 @@ func (this *UDPServer) locateExistingAndDispatch(dest string, packet v2net.Packe
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (this *UDPServer) Dispatch(source v2net.Destination, packet v2net.Packet, callback UDPResponseCallback) {
|
func (this *UDPServer) Dispatch(source v2net.Destination, packet v2net.Packet, callback UDPResponseCallback) {
|
||||||
destString := source.String() + "-" + packet.Destination().String()
|
destString := source.String() + "-" + packet.Destination().NetAddr()
|
||||||
if this.locateExistingAndDispatch(destString, packet) {
|
if this.locateExistingAndDispatch(destString, packet) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user