1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

reorder fields in Destination for faster hashing

This commit is contained in:
Darien Raymond 2018-03-16 10:13:10 +07:00
parent 087c0c1499
commit b5b9a83823
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -6,9 +6,9 @@ import (
// Destination represents a network destination including address and protocol (tcp / udp).
type Destination struct {
Network Network
Port Port
Address Address
Port Port
Network Network
}
// DestinationFromAddr generates a Destination from a net address.