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:
parent
087c0c1499
commit
b5b9a83823
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user