mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
address family interface
This commit is contained in:
parent
bcd27ba36f
commit
a2651f4dfc
@ -12,6 +12,14 @@ var (
|
|||||||
AnyIP = IPAddress([]byte{0, 0, 0, 0})
|
AnyIP = IPAddress([]byte{0, 0, 0, 0})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type AddressFamily int
|
||||||
|
|
||||||
|
const (
|
||||||
|
AddressFamilyIPv4 = AddressFamily(0)
|
||||||
|
AddressFamilyIPv6 = AddressFamily(1)
|
||||||
|
AddressFamilyDomain = AddressFamily(2)
|
||||||
|
)
|
||||||
|
|
||||||
// Address represents a network address to be communicated with. It may be an IP address or domain
|
// Address represents a network address to be communicated with. It may be an IP address or domain
|
||||||
// address, not both. This interface doesn't resolve IP address for a given domain.
|
// address, not both. This interface doesn't resolve IP address for a given domain.
|
||||||
type Address interface {
|
type Address interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user