[GH-ISSUE #4833] frpc.json: unknown field "local_port" #3816

Closed
opened 2026-05-05 14:26:26 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @Clydezhang2020 on GitHub (Jun 12, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4833

Bug Description

My frpc.json is the followings:
{
"serverAddr": "44.183.131.47",
"serverPort": 7000,
"auth": { "token": "" },
"visitors": [
{
"name": "test",
"type": "xtcp",
"secretKey": "qqq2222",
"bindAddr": "127.0.0.1",
"local_port": "8080",
"allowUsers": [ "tester" ]
}
]
}
when excute frpc -c frpc.json,it prompt:unmarshal VisitorConfig error: json: unknown field "local_port";
if I repalce "local_port": "8080" with "localport": "8080",it is the same result. but localport = 8080 is OK if I use frpc.toml. I don't know how to resolve.

frpc Version

frpc --version 0.62.1

frps Version

0.62.1

System Architecture

windows/amd64

Configurations

frps is running in CenteOS, frpc is run on windows11 64

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @Clydezhang2020 on GitHub (Jun 12, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4833 ### Bug Description My frpc.json is the followings: { "serverAddr": "44.183.131.47", "serverPort": 7000, "auth": { "token": "" }, "visitors": [ { "name": "test", "type": "xtcp", "secretKey": "qqq2222", "bindAddr": "127.0.0.1", "local_port": "8080", "allowUsers": [ "tester" ] } ] } when excute frpc -c frpc.json,it prompt:unmarshal VisitorConfig error: json: unknown field "local_port"; if I repalce "local_port": "8080" with "localport": "8080",it is the same result. but localport = 8080 is OK if I use frpc.toml. I don't know how to resolve. ### frpc Version frpc --version 0.62.1 ### frps Version 0.62.1 ### System Architecture windows/amd64 ### Configurations frps is running in CenteOS, frpc is run on windows11 64 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:26:26 -06:00
Author
Owner

@superzjg commented on GitHub (Jun 12, 2025):

"localPort": 8080,

<!-- gh-comment-id:2966823173 --> @superzjg commented on GitHub (Jun 12, 2025): `"localPort": 8080,`
Author
Owner

@Clydezhang2020 commented on GitHub (Jun 13, 2025):

"localPort": 8080,
problem remains:unknown field "localPort"

<!-- gh-comment-id:2969405072 --> @Clydezhang2020 commented on GitHub (Jun 13, 2025): > `"localPort": 8080,` problem remains:unknown field "localPort"
Author
Owner

@eefenaxce commented on GitHub (Jun 23, 2025):

你带双引号了?

<!-- gh-comment-id:2997608496 --> @eefenaxce commented on GitHub (Jun 23, 2025): 你带双引号了?
Author
Owner

@github-actions[bot] commented on GitHub (Jul 8, 2025):

Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.

<!-- gh-comment-id:3046975056 --> @github-actions[bot] commented on GitHub (Jul 8, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3816
No description provided.