Skip to content

Commit

Permalink
config: fix server_name not using user as prefix, fix #804
Browse files Browse the repository at this point in the history
  • Loading branch information
fatedier committed Jun 8, 2018
1 parent 71603c6 commit f577834
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions models/config/proxy.go
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f577834

Please sign in to comment.