[GH-ISSUE #4724] unmarshal ProxyConfig error: json: unknown field "remotePort" #3728

Closed
opened 2026-05-05 14:23:25 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @a982338665 on GitHub (Mar 24, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4724

Bug Description

客户端代理配置如下:
proxies
name = "web"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 7003
此配置启动无问题,修改tcp为http后启动报错如下
unmarshal ProxyConfig error: json: unknown field "remotePort"

frpc Version

0.61.2

frps Version

0.61.2

System Architecture

windows/amd64

Configurations

客户端代理配置如下:
proxies
name = "web"
type = "tcp"
localIP = "127.0.0.1"
localPort = 80
remotePort = 7003
此配置启动无问题,修改tcp为http后启动报错如下
unmarshal ProxyConfig error: json: unknown field "remotePort"

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 @a982338665 on GitHub (Mar 24, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4724 ### Bug Description 客户端代理配置如下: [[proxies]] name = "web" type = "tcp" localIP = "127.0.0.1" localPort = 80 remotePort = 7003 此配置启动无问题,修改tcp为http后启动报错如下 unmarshal ProxyConfig error: json: unknown field "remotePort" ### frpc Version 0.61.2 ### frps Version 0.61.2 ### System Architecture windows/amd64 ### Configurations 客户端代理配置如下: [[proxies]] name = "web" type = "tcp" localIP = "127.0.0.1" localPort = 80 remotePort = 7003 此配置启动无问题,修改tcp为http后启动报错如下 unmarshal ProxyConfig error: json: unknown field "remotePort" ### 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
Author
Owner

@PANDAJSR commented on GitHub (Aug 27, 2025):

怎么解决的

<!-- gh-comment-id:3228372956 --> @PANDAJSR commented on GitHub (Aug 27, 2025): 怎么解决的
Author
Owner

@wukan1986 commented on GitHub (Sep 13, 2025):

明白了,不支持remotePort,只能frps.toml中写vhostHTTPPort

<!-- gh-comment-id:3288110921 --> @wukan1986 commented on GitHub (Sep 13, 2025): 明白了,不支持`remotePort`,只能frps.toml中写`vhostHTTPPort`
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#3728
No description provided.