Documentation
¶
Index ¶
- Constants
- Variables
- func GeoIP(ip net.IP) string
- func GeoIPString(ipaddr string) string
- func GeoIPs(ips []net.IP) string
- func LoadConfig(cfgFile string, geoFile string)
- func ResetAllProxys()
- func SetProxyBypassDomains(domains []string)
- func SetSocksFirewallProxy()
- type HostRule
- type ProxyConfig
- type ProxyServerCipher
- type SyncMap
Constants ¶
View Source
const ( VERSION = "0.1.1" SOCKS_PORT = 1080 RULE_REJECT = "REJECT" RULE_DIRECT = "DIRECT" )
Variables ¶
View Source
var ProxyServers struct { ListenAddress string LocalSocksPort int SrvCipher map[string]*ProxyServerCipher SrvCipherGroup map[string][]*ProxyServerCipher GetCipher func(name string) *ProxyServerCipher FailCipher func(name string) int // contains filtered or unexported fields }
Functions ¶
func GeoIPString ¶
func LoadConfig ¶
func ResetAllProxys ¶
func ResetAllProxys()
func SetProxyBypassDomains ¶
func SetProxyBypassDomains(domains []string)
func SetSocksFirewallProxy ¶
func SetSocksFirewallProxy()
Types ¶
type HostRule ¶
func RuleOfHost ¶
type ProxyConfig ¶
type ProxyServerCipher ¶
Click to show internal directories.
Click to hide internal directories.