frpc更新后有问题

前两天应用商店推送了frp0551的更新,frpc更新后有问题,日志:1Panel-frpc-crhF | unmarshal ProxyConfig error: json: unknown field “webServer”

frps正常的。
没更新前frps、frpc一直正常使用,更新后就有问题了

配置文件格式又改了,自己去改一下配置,稳定用了就不要更新了,这frp作者总是修改配置文件的写法,除非要用新功能或者重大bug我个人不建议更新。

可以提供一下具体配置修改,我们推送到正式仓库中 :+1:

这是官方最近版本更新日志

v0.54.0

Deprecation Notices

  • Using an underscore in a flag name is deprecated and has been replaced by a hyphen. The underscore format will remain compatible for some time, until it is completely removed in a future version. For example, is replaced with .--remote_port --remote-port

Features

  • The and buttons have been added to the Dashboard of frps.Refresh ClearOfflineProxies

Fixes

  • The host/domain matching in the routing rules has been changed to be case-insensitive.

v0.55.0

Notable Changes

  • The minimum supported Go version has been updated to . In the new version of Go, the default minimum supported TLS version has been changed to .1.22 TLS 1.2
  • The default value of has been changed from to . If your configuration file uses a non-existent configuration item or has a spelling error, the application will throw an error. This startup parameter was introduced in version . If you wish to continue using the old behavior, you need to explicitly set .--strict-config false true v0.53.0 --strict-config=false

Features

  • Proxy supports configuring annotations, which will be displayed in the frps dashboard.

Changes

  • Removed dependencies on the forked version of kcp-go and beego log, kcp-go now uses the upstream version, and golib/log replaces beego log.

v0.56.0 Latest

Features

  • Support range ports mapping in TOML/YAML/JSON configuration file by using go template syntax.For example:
{{- range $_, $v := parseNumberRangePair "6000-6006,6007" "6000-6006,6007" }}
[[proxies]]
name = "tcp-{{ $v.First }}"
type = "tcp"
localPort = {{ $v.First }}
remotePort = {{ $v.Second }}
{{- end }}

This will create 8 proxies such as .tcp-6000, tcp-6001, ... tcp-6007

  • Health check supports custom request headers.
  • Enable compatibility mode for the Android system to solve the issues of incorrect log time caused by time zone problems and default DNS resolution failures.

Fixes

  • Fix the issue of incorrect interval time for rotating the log by day.
  • Disable quic-go’s ECN support by default. It may cause issues on certain operating systems.

同时官方的文档是同步更新的
文档 | frp (gofrp.org)

我个人认为作为使用者应该自觉去查文档和注意更新变化,我没有更新frpc,我依旧使用0.53.2,因为我自己魔改了frp

从题主遇到的报错

unmarshal ProxyConfig error: json: unknown field “webServer”

不难看出是webServer字段错误,我不知题主webServer字段是怎么写的,但翻看官方文档目前应该这样写

# frpc.toml
webServer.addr = "127.0.0.1"
webServer.port = 7400
webServer.user = "admin"
webServer.password = "admin"

serverAddr = “127.0.0.1”
serverPort = 10689

auth token

auth.token = “M2Y*******”

[[proxies]]
name = “www******”
type = “http”
localPort = 80
subdomain = “www”

[[proxies]]
name = “file******”
type = “http”
localPort = 80
subdomain = “file”

webServer.addr = “0.0.0.0”
webServer.port = 10561
webServer.user = “****”
webServer.password = “*****”
webServer.pprofEnable = false