Documentation ¶
Index ¶
- func ConfigInterfaceAddress(dev device.Device, addr netip.Prefix, _ int, autoRoute bool) error
- func GetAutoDetectInterface() (string, error)
- func RelayDnsPacket(payload []byte) ([]byte, error)
- func SetTunChangeCallback(callback C.TUNChangeCallback)
- func SetTunStatus(status C.TUNState)
- func ShouldHijackDns(dnsHijack []C.DNSUrl, targetAddr netip.AddrPort, network string) bool
- func StartDefaultInterfaceChangeMonitor()
- func StopDefaultInterfaceChangeMonitor()
- func UpdateWireGuardBind()
- type DefaultInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigInterfaceAddress ¶
func GetAutoDetectInterface ¶
func RelayDnsPacket ¶
func SetTunChangeCallback ¶
func SetTunChangeCallback(callback C.TUNChangeCallback)
func SetTunStatus ¶
func ShouldHijackDns ¶
func StartDefaultInterfaceChangeMonitor ¶
func StartDefaultInterfaceChangeMonitor()
func StopDefaultInterfaceChangeMonitor ¶
func StopDefaultInterfaceChangeMonitor()
func UpdateWireGuardBind ¶
func UpdateWireGuardBind()
Types ¶
Click to show internal directories.
Click to hide internal directories.