Browse Source

fix frps --log_file useless, fix #1125

fatedier 6 năm trước cách đây
mục cha
commit
6b61cb3742
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
 
 	if logFile == "console" {
-		g.GlbClientCfg.LogWay = "console"
+		g.GlbServerCfg.LogWay = "console"
 	} else {
-		g.GlbClientCfg.LogWay = "file"
+		g.GlbServerCfg.LogWay = "file"
 	}
 	return
 }