From 58d0d41501203e7e8e562cef919367f49ea4693a Mon Sep 17 00:00:00 2001 From: fatedier Date: Mon, 27 Mar 2017 03:53:21 +0800 Subject: [PATCH] fix --- models/config/proxy.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/models/config/proxy.go b/models/config/proxy.go index 247b2b0..4718a8c 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"]