浏览代码

fix frps --log_file useless, fix #1125

fatedier 6 年之前
父节点
当前提交
6b61cb3742
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cmd/frps/root.go

+ 2 - 2
cmd/frps/root.go

@@ -187,9 +187,9 @@ func parseServerCommonCfgFromCmd() (err error) {
 	g.GlbServerCfg.MaxPortsPerClient = maxPortsPerClient
 	g.GlbServerCfg.MaxPortsPerClient = maxPortsPerClient
 
 
 	if logFile == "console" {
 	if logFile == "console" {
-		g.GlbClientCfg.LogWay = "console"
+		g.GlbServerCfg.LogWay = "console"
 	} else {
 	} else {
-		g.GlbClientCfg.LogWay = "file"
+		g.GlbServerCfg.LogWay = "file"
 	}
 	}
 	return
 	return
 }
 }