Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unmarshal ProxyConfig error: json: unknown field "customDomains" #4277

Open
2 of 11 tasks
LandonDeam opened this issue Jun 12, 2024 · 2 comments
Open
2 of 11 tasks

unmarshal ProxyConfig error: json: unknown field "customDomains" #4277

LandonDeam opened this issue Jun 12, 2024 · 2 comments

Comments

@LandonDeam
Copy link

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
@fatedier
Copy link
Owner

customDomains is not for type tcp.

@Nian2000
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants