[GH-ISSUE #4277] unmarshal ProxyConfig error: json: unknown field "customDomains" #3371

Closed
opened 2026-05-05 14:10:27 -06:00 by gitea-mirror · 3 comments
Owner

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

  1. run /usr/bin/frpc -c /etc/frp/frpc.toml with the above frpc.toml file

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
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 1. run `/usr/bin/frpc -c /etc/frp/frpc.toml` with the above `frpc.toml` file ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Jun 13, 2024):

customDomains is not for type tcp.

<!-- gh-comment-id:2164258417 --> @fatedier commented on GitHub (Jun 13, 2024): `customDomains` is not for type `tcp`.
Author
Owner

@Nian2000 commented on GitHub (Jun 25, 2024):

有点坑,
local_port = 8848 ✔
localPort = 8848 (官网示例是这样的,但是很坑)

<!-- gh-comment-id:2188482264 --> @Nian2000 commented on GitHub (Jun 25, 2024): 有点坑, local_port = 8848 ✔ localPort = 8848 ❌(官网示例是这样的,但是很坑)
Author
Owner

@metalbreeze commented on GitHub (Aug 16, 2025):

太坑了,把后缀toml 换成ini 貌似可以。

<!-- gh-comment-id:3193508094 --> @metalbreeze commented on GitHub (Aug 16, 2025): 太坑了,把后缀toml 换成ini 貌似可以。
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#3371
No description provided.