[GH-ISSUE #4279] 按照gofrp.org官网,提供的p2p教程示例,两台服务器部署的时候json解析失败 #3373

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

Originally created by @tsukiyoz on GitHub (Jun 14, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4279

Bug Description

proxies
name = "p2p_ssh_visitor"
type = "xtcp"
serverName = "p2p_ssh"
secretKey = "abcdefg"
bindAddr = "127.0.0.1"
bindPort = 6000

执行./frpc -c frpc.toml

报错unmarshal ProxyConfig error: json: unknown field "bindAddr"

frpc Version

0.58.1

frps Version

0.58.1

System Architecture

linux/amd64

Configurations

proxies
name = "p2p_ssh_visitor"
type = "xtcp"
serverName = "p2p_ssh"
secretKey = "abcdefg"
bindAddr = "127.0.0.1"
bindPort = 6000

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 @tsukiyoz on GitHub (Jun 14, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4279 ### Bug Description [[proxies]] name = "p2p_ssh_visitor" type = "xtcp" serverName = "p2p_ssh" secretKey = "abcdefg" bindAddr = "127.0.0.1" bindPort = 6000 执行./frpc -c frpc.toml 报错unmarshal ProxyConfig error: json: unknown field "bindAddr" ### frpc Version 0.58.1 ### frps Version 0.58.1 ### System Architecture linux/amd64 ### Configurations [[proxies]] name = "p2p_ssh_visitor" type = "xtcp" serverName = "p2p_ssh" secretKey = "abcdefg" bindAddr = "127.0.0.1" bindPort = 6000 ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [X] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@A2uria commented on GitHub (Jun 14, 2024):

[[proxies]] 改成 [[visitors]]

<!-- gh-comment-id:2167070417 --> @A2uria commented on GitHub (Jun 14, 2024): `[[proxies]]` 改成 `[[visitors]]`
Author
Owner

@tsukiyoz commented on GitHub (Jun 14, 2024):

thanks, 感谢。根据@A2ruia的解惑,可以实现p2p了

<!-- gh-comment-id:2167074296 --> @tsukiyoz commented on GitHub (Jun 14, 2024): thanks, 感谢。根据@A2ruia的解惑,可以实现p2p了
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#3373
No description provided.