Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrPortMappedEqual ¶
AddrPortMappedEqual returns whether the two addresses point to the same endpoint. An IPv4 address and an IPv4-mapped IPv6 address pointing to the same endpoint are considered equal. For example, 1.1.1.1:53 and [::ffff:1.1.1.1]:53 are considered equal.
func AddrPortv4Mappedv6 ¶
AddrPortv4Mappedv6 converts an IPv4 address to an IPv4-mapped IPv6 address. This function does nothing if addrPort is an IPv6 address.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.