mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4833] frpc.json: unknown field "local_port" #3816
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3816
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@superzjg commented on GitHub (Jun 12, 2025):
"localPort": 8080,@Clydezhang2020 commented on GitHub (Jun 13, 2025):
@eefenaxce commented on GitHub (Jun 23, 2025):
你带双引号了?
@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.