diff --git a/models/config/proxy.go b/models/config/proxy.go index 247b2b09..4718a8c6 100644 --- a/models/config/proxy.go +++ b/models/config/proxy.go @@ -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"]