mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4027] P2P Mode 文档错误 #3187
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#3187
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @KevinWang15 on GitHub (Feb 27, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4027
文档没问题,是我理解错了,当时想要转发多个端口,所以我在frpc.ini中用了
我以为里面的是Proxy的名字可以随便起
但是不是的,必须按照文档写
[[proxies]]、[[visitors]]才可以生效不好意思打扰了
以下是原Issue,请忽视
Bug Description
根据文档中P2P Mode配置xtcp,会得到Connection refused把frpc换成使用命令行flags启动,可以正常工作怀疑是文档写错了?frpc Version
0.54.0
frps Version
0.54.0
System Architecture
linux/amd64
Configurations
Logs
No response
Steps to reproduce
No response
Affected area
@xqzr commented on GitHub (Feb 27, 2024):
[common]@KevinWang15 commented on GitHub (Feb 27, 2024):
之前多了一个[common]的确是我疏忽
我把common去掉了,还是一样的效果(我更新了PR)
以及没有任何错误日志
@yiliufeng168 commented on GitHub (Mar 4, 2024):
我遇到了类似情况
@KevinWang15 commented on GitHub (Mar 5, 2024):
文档没问题,是我理解错了,当时想要转发多个端口,所以我在frpc.ini中用了
我以为里面的是Proxy的名字可以随便起
但是不是的,必须按照文档写
[[proxies]]、[[visitors]]才可以生效不好意思打扰了
@KevinWang15 commented on GitHub (Mar 5, 2024):
之所以犯这个错,是因为我的配置文件是从比较早期的frp配置文件改过来的,那个时候,是定义
方括号里的内容的确是可以随意指定的名称
但是后来配置改了,需要提供指定名称的数组
[[key]]是用来定义数组的用来定义长度为2的名称为visitors的数组
这个主要是我弄错了
不过或许加一个校验,比如启动时报错 配置文件里有不认识的参数 也会有帮助