This commit is contained in:
fatedier 2017-03-27 03:53:21 +08:00
parent 6a95a63fd4
commit 58d0d41501
1 changed files with 5 additions and 1 deletions

View File

@ -115,7 +115,11 @@ func (cfg *BaseProxyConf) LoadFromFile(name string, section ini.Section) error {
tmpStr string
ok bool
)
cfg.ProxyName = ClientCommonCfg.User + "." + name
if ClientCommonCfg.User != "" {
cfg.ProxyName = ClientCommonCfg.User + "." + name
} else {
cfg.ProxyName = name
}
cfg.ProxyType = section["type"]
tmpStr, ok = section["use_encryption"]