Versions in this module Expand all Collapse all v1 v1.0.0 Nov 12, 2023 Changes in this version + const DefaultDnsReadTimeout + const DefaultDnsRelayTimeout + var InterfaceName = "Meta" + func CalculateInterfaceName(name string) (tunName string) + func RelayDnsPacket(ctx context.Context, payload []byte) ([]byte, error) + type Listener struct + func New(options LC.Tun, tunnel C.Tunnel, additions ...inbound.Addition) (l *Listener, err error) + func (l *Listener) Address() string + func (l *Listener) Close() error + func (l *Listener) Config() LC.Tun + func (l *Listener) FlushDefaultInterface() + type ListenerHandler struct + DnsAdds []netip.AddrPort + func (h *ListenerHandler) NewConnection(ctx context.Context, conn net.Conn, metadata M.Metadata) error + func (h *ListenerHandler) NewPacketConnection(ctx context.Context, conn network.PacketConn, metadata M.Metadata) error + func (h *ListenerHandler) ShouldHijackDns(targetAddr netip.AddrPort) bool