mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 23:47:07 -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).
|
// Destination represents a network destination including address and protocol (tcp / udp).
|
||||||
type Destination struct {
|
type Destination struct {
|
||||||
Network Network
|
|
||||||
Port Port
|
|
||||||
Address Address
|
Address Address
|
||||||
|
Port Port
|
||||||
|
Network Network
|
||||||
}
|
}
|
||||||
|
|
||||||
// DestinationFromAddr generates a Destination from a net address.
|
// DestinationFromAddr generates a Destination from a net address.
|
||||||
|
Loading…
Reference in New Issue
Block a user