Skip to content

0.64.0 darwin configuration error #4975

@ysfl

Description

@ysfl

Bug Description

frp_0.64.0_darwin_arm64.tar.gz

This packaged version will cause errors when running frpc on macOS. I tried changing different configurations but couldn't start it. In the end, I successfully started it using a specific strong compatibility ini configuration

frpc Version

0.64.0

frps Version

0.64.0

System Architecture

macOS/15.6.1

Configurations

frpc.json

{
"serverAddr": "web.com",
"serverPort": 7000,
"authentication": {
"method": "token",
"token": "abcd1234"
},
"proxies": [
{
"name": "web",
"type": "tcp",
"localIP": "127.0.0.1",
"localPort": 82,
"remotePort": 7000
}
]
}

frpc.toml

serverAddr = "x.x.x.x"
serverPort = 7000
auth.method = "token"
auth.token = "abcd1234" # 令牌,必须与服务端一致 否则无法连接
[[proxies]]
name = "web"
type = http
local_port = 82
custom_domains = ["web.com"]

frpc.ini This version runs successfully

[common]
server_addr = web.com
server_port = 7000
token = abcd1234
[web]
type = tcp
local_ip = 127.0.0.1
local_port = 82
remote_port = 7000

Logs

./frpc

error:open ./frpc.ini: no such file or directory

cp frpc.toml frpc.ini
./frpc

error:json: cannot unmarshal string into Go value of type v1.ClientConfig

./frpc -c frpc.json

error:json: unknown field "authentication"
error:json: unknown field "token"
error:json: unknown field "auth.method"

./frpc -c frpc.ini Successfully run after rebuilding the ini file content

error:WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead!

Steps to reproduce

  1. download frp_0.64.0_darwin_arm64.tar.gz
  2. use the frpc.toml
  3. ./frpc

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions