fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
85.34k stars 13.23k forks source link

error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1.ClientConfig #4381

Closed RickoNoNo3 closed 2 months ago

RickoNoNo3 commented 2 months ago

Bug Description

Windows,使用toml配置时报错:error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1.ClientConfig

根据https://github.com/fatedier/frp/issues/3859的方法,检查配置文件格式未发现问题,检查行尾LF或CRLF都无果。

frpc Version

0.59.0

frps Version

0.59.0

System Architecture

windows/adm64

Configurations

frpc.toml:

serverAddr = "x.x.x.x"
serverPort = 8000
transport.protocol = "websocket"
auth.method = “token"
auth.token = "******"

[[proxies]]
name = "{{.Envs.FRPC_NAME}}"
type = "{{.Envs.FRPC_TYPE}}"
localIP = "127.0.0.1"
localPort = {{.Envs.FRPC_LOCAL_PORT}}
remotePort = {{.Envs.FRPC_REMOTE_PORT}}

transport.useEncryption = true
transport.useCompression = true

Logs

No response

Steps to reproduce

No response

Affected area

RickoNoNo3 commented 2 months ago

抱歉,是引号打成了中文的。。用记事本没发现