Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRulesCidr ¶
func NewUidDumper ¶
func NewUidDumper(ud UidDumper) netapi.ProcessDumper
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) SaveNewBypass ¶
type Bypass ¶
type Bypass struct {
Block string `json:"block"`
Proxy string `json:"proxy"`
Direct string `json:"direct"`
// 0: bypass, 1: proxy, 2: direct, 3: block
TCP int32 `json:"tcp"`
// 0: bypass, 1: proxy, 2: direct, 3: block
UDP int32 `json:"udp"`
Sniffy bool `json:"sniffy"`
UDPSkipResolveFqdn bool `json:"udp_skip_resolve_fqdn"`
}
type DNSSetting ¶
type DNSSetting struct {
Remote *DNS `json:"remote"`
Local *DNS `json:"local"`
Bootstrap *DNS `json:"bootstrap"`
Server string `json:"server"`
FakednsIpRange string `json:"fakedns_ip_range"`
FakednsIpv6Range string `json:"fakedns_ipv6_range"`
Hosts []byte `json:"hosts"`
Fakedns bool `json:"fakedns"`
ResolveRemoteDomain bool `json:"resolve_remote_domain"`
}
type SocketProtect ¶
type TUN ¶
type TUN struct {
UidDumper UidDumper
SocketProtect SocketProtect
Portal string `json:"portal"`
PortalV6 string `json:"portal_v6"`
FD int32 `json:"fd"`
MTU int32 `json:"mtu"`
// Driver
// 0: fdbased
// 1: channel
// 2: tun2socket
// 3: tun2socket_gvisor
Driver int32 `json:"driver"`
DNSHijacking bool `json:"dns_hijacking"`
}
Click to show internal directories.
Click to hide internal directories.