From f5778349d5402ce80aa9828b12ae57efad1d8dc8 Mon Sep 17 00:00:00 2001 From: fatedier Date: Fri, 8 Jun 2018 14:44:19 +0800 Subject: [PATCH] config: fix server_name not using user as prefix, fix #804 --- models/config/proxy.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/models/config/proxy.go b/models/config/proxy.go index 31b26e7..0270c1c 100644 --- a/models/config/proxy.go +++ b/models/config/proxy.go @@ -671,7 +671,6 @@ func (cfg *StcpProxyConf) UnmarshalFromIni(prefix string, name string, section i cfg.Sk = section["sk"] if tmpStr == "visitor" { - prefix := section["prefix"] cfg.ServerName = prefix + section["server_name"] if cfg.BindAddr = section["bind_addr"]; cfg.BindAddr == "" { cfg.BindAddr = "127.0.0.1" @@ -777,7 +776,6 @@ func (cfg *XtcpProxyConf) UnmarshalFromIni(prefix string, name string, section i cfg.Sk = section["sk"] if tmpStr == "visitor" { - prefix := section["prefix"] cfg.ServerName = prefix + section["server_name"] if cfg.BindAddr = section["bind_addr"]; cfg.BindAddr == "" { cfg.BindAddr = "127.0.0.1"