[GH-ISSUE #4105] 配置文件根据文档配置不正确了 #3238

Closed
opened 2026-05-05 14:05:30 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @skinhc on GitHub (Mar 25, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4105

Bug Description

我在使用0.56.0版本时,用frpc.toml时出现错误,无法解析remotePort字段
serverAddr = "xx.xx.xx.xx"
serverPort = 7000
auth.token = "aaaa"

proxies
name = "stcp-test1"
secretKey = "asdf"
type = "stcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

frpc Version

0.56.0

frps Version

0.56.0

System Architecture

linux/amd64

Configurations

serverAddr = "xx.xx.xx.xx"
serverPort = 7000
auth.token = "aaaa"

proxies
name = "stcp-test1"
secretKey = "asdf"
type = "stcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000

Logs

unmarshal ProxyConfig error: json: unknown field "remotePort"

Steps to reproduce

  1. 编辑frpc.toml
  2. 运行 ./frpc -c ./frpc.toml

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @skinhc on GitHub (Mar 25, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4105 ### Bug Description 我在使用0.56.0版本时,用frpc.toml时出现错误,无法解析remotePort字段 serverAddr = "xx.xx.xx.xx" serverPort = 7000 auth.token = "aaaa" [[proxies]] name = "stcp-test1" secretKey = "asdf" type = "stcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 ### frpc Version 0.56.0 ### frps Version 0.56.0 ### System Architecture linux/amd64 ### Configurations serverAddr = "xx.xx.xx.xx" serverPort = 7000 auth.token = "aaaa" [[proxies]] name = "stcp-test1" secretKey = "asdf" type = "stcp" localIP = "127.0.0.1" localPort = 22 remotePort = 6000 ### Logs unmarshal ProxyConfig error: json: unknown field "remotePort" ### Steps to reproduce 1. 编辑frpc.toml 2. 运行 ./frpc -c ./frpc.toml 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [X] Extensions - [ ] Others
Author
Owner

@wuai1024 commented on GitHub (Mar 25, 2024):

可以仔细检查下配置文件。

stcp 不支持 remotePort

<!-- gh-comment-id:2017723771 --> @wuai1024 commented on GitHub (Mar 25, 2024): 可以仔细检查下配置文件。 `stcp` 不支持 `remotePort`
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#3238
No description provided.