Versions in this module Expand all Collapse all v1 v1.0.0 Sep 11, 2017 Changes in this version + var G_Auth = flag.String("a", "", "proxy authentication, form: username:password (remember the colon)") + var G_Cache *lru.Cache + var G_Config = flag.String("c", "", "config file path") + var G_DNSCacheEntries = flag.Int("dns-cache", 1024, "DNS cache size") + var G_Debug = flag.Bool("debug", false, "debug mode") + var G_DisableConsole = flag.Bool("disable-console", false, "disable the console access") + var G_DisableShoco = flag.Bool("disable-shoco", false, "disable shoco compression") + var G_HRCounter = flag.Bool("hr-counter", true, "use high resolution counter") + var G_Key = flag.String("k", "0123456789abcdef", "key, important") + var G_KeyBlock cipher.Block + var G_KeyBytes []byte + var G_Local = flag.String("l", ":8100", "local listening") + var G_PartialEncrypt = flag.Bool("partial", false, "partially encrypt the tunnel traffic") + var G_ProxyAllTraffic = flag.Bool("proxy-all", false, "proxy Chinese websites") + var G_RecordLocalError = flag.Bool("local-error", false, "log all localhost errors") + var G_RequestDummies *lru.Cache + var G_Throttling = flag.Int("throttling", 0, "traffic throttling, experimental") + var G_ThrottlingMax = flag.Int("throttling-max", 1024 * 1024, "traffic throttling token bucket max capacity") + var G_Upstream = flag.String("up", "", "upstream server address (e.g. 127.0.0.1:8100)") + var G_UseChinaList = flag.Bool("china-list", true, "identify Chinese websites using china-list") + func LoadConfig() + func ParseConf(str string) (*conf_t, error) + func UpdateKey() + type ConfError struct + func (e *ConfError) Error() string