Versions in this module Expand all Collapse all v1 v1.2.2 Apr 18, 2026 v1.2.1 Apr 18, 2026 Changes in this version + func CalculateInterfaceName(name string) (tunName string) + func KernelTunSupported() (bool, error) + type Handler struct + func New(settings HandlerSettings) (*Handler, error) + func (h *Handler) Close() (err error) + func (h *Handler) HandleFlow(ctx context.Context, destination net.Destination, rw buf.ReaderWriter) error + func (h *Handler) HandlePacketConn(ctx context.Context, dst net.Destination, pc udp.PacketReaderWriter) error + func (h *Handler) Tag() string + type HandlerSettings struct + Conf *wireguard.DeviceConfig + Dialer i.Dialer + DnsForEndpoint i.IPResolver + DnsForRequestAddress i.IPResolver + Name string + Strategy domain.DomainStrategy + type Tunnel interface + BuildDevice func(ipc string, bind conn.Bind) error + Close func() error + DialContextTCPAddrPort func(ctx context.Context, addr netip.AddrPort) (net.Conn, error) + DialUDPAddrPort func(laddr, raddr netip.AddrPort) (net.Conn, error)