package
0.0.0-20240511131238-7991a5deda32
Repository: https://github.com/xorgal/xtun-core.git
Documentation: pkg.go.dev
# Functions
DiscoverGateway returns the local gateway IP address.
GetdstKey returns the destination key of the packets.
Returns the name of interface.
GEtIPv4Dst returns the IPv4 destination address of the packet.
GetIPv4Src returns the IPv4 source address of the packet.
GetIPv6Dst returns the IPv6 destination address of the packet.
GetIPv6Src returns the IPv6 source address of the packet.
GetSrcKey returns the source key of the packet.
IsIPv4 returns true if the packet is IPv4s.
IsIPv6 returns true if the packet is IPv6s.
Lookup IP address of the given hostname.
LookupServerAddrIP returns the IP of server address.