mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4277] unmarshal ProxyConfig error: json: unknown field "customDomains" #3371
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#3371
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 @LandonDeam on GitHub (Jun 12, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4277
Bug Description
Can't get frpc to start with a customDomains field, always returns
unmarshal ProxyConfig error: json: unknown field "customDomains"frpc Version
0.58.1
frps Version
0.58.1
System Architecture
linux/amd64
Configurations
frpc.toml
serverAddr = "x.x.x.x"
serverPort = 7000
auth.method = "token"
auth.token = ""
proxies
name = "ssh"
type = "tcp"
customDomains = ["ssh.example.com"]
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000
includes = ["/etc/frp/frpc.d/*.toml"]
Logs
unmarshal ProxyConfig error: json: unknown field "customDomains"
Steps to reproduce
/usr/bin/frpc -c /etc/frp/frpc.tomlwith the abovefrpc.tomlfileAffected area
@fatedier commented on GitHub (Jun 13, 2024):
customDomainsis not for typetcp.@Nian2000 commented on GitHub (Jun 25, 2024):
有点坑,
local_port = 8848 ✔
localPort = 8848 ❌(官网示例是这样的,但是很坑)
@metalbreeze commented on GitHub (Aug 16, 2025):
太坑了,把后缀toml 换成ini 貌似可以。