Versions in this module Expand all Collapse all v0 v0.11.1 Jun 14, 2026 v0.11.0 Jun 7, 2026 Changes in this version type RouteConfig + DefaultInterface string v0.10.0 May 23, 2026 Changes in this version + func SetLogEnabled(enabled bool) + type DNSConfig struct + FakeDNS bool + FakeDNSRange string + type InboundConfig struct + AutoRoute bool + Inet4Address string + MTU uint32 + Sniff bool + StrictRoute bool + TunName string + type OutboundConfig struct + Password string + Port uint16 + Server string + Tag string + Type string + Username string + type RouteConfig struct + Final string + Rules []RuleConfig + type RuleConfig struct + Domain []string + DomainSuffix []string + IPCidr []string + Invert bool + Outbound string + Port []uint16 + ProcessName []string + Protocol string + type Server struct + func New(cfg *TunConfig) (*Server, error) + func (s *Server) Close() error + func (s *Server) Start() error + type TunConfig struct + DNS DNSConfig + Enabled bool + Inbound InboundConfig + Outbounds []OutboundConfig + Route RouteConfig + func DefaultConfig() *TunConfig + func LoadConfig(path string) (*TunConfig, error)