mirror of https://github.com/v2ray/v2ray-core
reorder fields in Destination for faster hashing
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