Documentation ¶
Index ¶
- Constants
- func MatchPatterns(str string, rules []string) bool
- func Start(options ProxyOptions) error
- func StartProxy() error
- func Stop() error
- func SyncConfig(addr string, localDir string) (bool, error)
- type AdminConfig
- type GFWListConfig
- type LocalConfig
- type PACConfig
- type ProxyConfig
- type ProxyOptions
- type SNIConfig
- type UDPGWConfig
Constants ¶
View Source
const ( BlockedByGFWRule = "BlockedByGFW" InHostsRule = "InHosts" IsCNIPRule = "IsCNIP" )
View Source
const ( SO_ORIGINAL_DST = 80 IP6T_SO_ORIGINAL_DST = 80 IPV6_RECVORIGDSTADDR = 74 )
Variables ¶
This section is empty.
Functions ¶
func MatchPatterns ¶ added in v0.26.1
func Start ¶
func Start(options ProxyOptions) error
func StartProxy ¶ added in v0.29.0
func StartProxy() error
Types ¶
type AdminConfig ¶
type GFWListConfig ¶ added in v0.26.0
type LocalConfig ¶
type LocalConfig struct { Log []string Cipher channel.CipherConfig Mux channel.MuxConfig UserAgent string User string LocalDNS dns.LocalDNSConfig UDPGW UDPGWConfig SNI SNIConfig Admin AdminConfig GFWList GFWListConfig TransparentMark int Proxy []ProxyConfig Channel []channel.ProxyChannelConfig }
var GConf LocalConfig
type PACConfig ¶
type ProxyConfig ¶
type ProxyOptions ¶ added in v0.28.0
type UDPGWConfig ¶ added in v0.27.2
type UDPGWConfig struct {
Addr string
}
Click to show internal directories.
Click to hide internal directories.