diff --git a/cmd/frps/root.go b/cmd/frps/root.go index 573417f..cc7e0e1 100644 --- a/cmd/frps/root.go +++ b/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 }