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 HTTPDumpConfig
- type LocalConfig
- type PACConfig
- type ProxyConfig
- type ProxyOptions
- type SNIConfig
- type UDPGWConfig
Constants ¶
View Source
const ( BlockedByGFWRule = "BlockedByGFW" InHostsRule = "InHosts" IsCNIPRule = "IsCNIP" IsPrivateIPRule = "IsPrivateIP" )
View Source
const ( SO_ORIGINAL_DST = 80 IP6T_SO_ORIGINAL_DST = 80 IPV6_RECVORIGDSTADDR = 74 )
Variables ¶
This section is empty.
Functions ¶
func MatchPatterns ¶
func Start ¶
func Start(options ProxyOptions) error
func StartProxy ¶
func StartProxy() error
Types ¶
type AdminConfig ¶
type GFWListConfig ¶
type HTTPDumpConfig ¶
type HTTPDumpConfig struct { Dump string Domain []string ExcludeBody []string IncludeBody []string }
func (*HTTPDumpConfig) MatchDomain ¶
func (dump *HTTPDumpConfig) MatchDomain(host string) bool
type LocalConfig ¶
type LocalConfig struct { Log []string Cipher channel.CipherConfig Mux channel.MuxConfig ProxyLimit channel.ProxyLimitConfig UserAgent string UPNPExposePort int 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 ¶
type UDPGWConfig ¶
type UDPGWConfig struct {
Addr string
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.