Versions in this module Expand all Collapse all v1 v1.31.1 Nov 1, 2023 v1.31.0 Oct 20, 2023 Changes in this version + func ConfigInterfaceAddress(_ device.Device, _ netip.Prefix, _ int, _ bool) error — js/wasm + func ConfigInterfaceAddress(dev device.Device, addr netip.Prefix, _ int, autoRoute bool) error — linux/amd64 + func ConfigInterfaceAddress(dev device.Device, addr netip.Prefix, forceMTU int, autoRoute bool) error — windows/amd64 + func ConfigInterfaceAddress(dev device.Device, prefix netip.Prefix, _ int, autoRoute bool) error — darwin/amd64 + 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 struct + Gateway netip.Addr + IP netip.Addr + Index int + Name string