Documentation ¶
Index ¶
- func AddRulesCidr(process AddRoute, rules string)
- func DeleteCache(name string)
- func InitDB(path string)
- func NewUidDumper(ud UidDumper) listener.ProcessDumper
- type AddRoute
- type App
- type Bypass
- type CIDR
- type Cache
- type Closer
- type DNS
- type DNSSetting
- type Log
- type Opts
- type SocketProtect
- type TUN
- type UidDumper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRulesCidr ¶
func DeleteCache ¶
func DeleteCache(name string)
func NewUidDumper ¶
func NewUidDumper(ud UidDumper) listener.ProcessDumper
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) SaveNewBypass ¶
type DNSSetting ¶
type DNSSetting struct { Server string `json:"server"` Fakedns bool `json:"fakedns"` FakednsIpRange string `json:"fakedns_ip_range"` ResolveRemoteDomain bool `json:"resolve_remote_domain"` Remote *DNS `json:"remote"` Local *DNS `json:"local"` Bootstrap *DNS `json:"bootstrap"` Hosts []byte `json:"hosts"` }
type SocketProtect ¶
type TUN ¶
type TUN struct { FD int32 `json:"fd"` MTU int32 `json:"mtu"` Portal string `json:"portal"` PortalV6 string `json:"portal_v6"` DNSHijacking bool `json:"dns_hijacking"` // Driver // 0: fdbased // 1: channel // 2: tun2socket // 3: tun2socket_gvisor Driver int32 `json:"driver"` UidDumper UidDumper SocketProtect SocketProtect }
Click to show internal directories.
Click to hide internal directories.