mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3990] Wiki例子格式错误 #3163
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#3163
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 @Matthew-Harris-36 on GitHub (Feb 14, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/3990
Bug Description
我在实际配置中发现配置格式和WIKI中有很大出入,所以指出来,还麻烦开发者大大改下,避免其它小白犯错。


官方Wiki网页
此处前一行应该有
[common]字段,不应该省略,因为前面也没有提到与[common]相关的内容,下文的frpc.toml也是一样。serverAddr应该为server_addr,serverPort应该为server_port,[[proxies]]应该只有一对中括号,[[proxies]]和name段功能重复,只讲一个就好了,localIP应该为local_ip,localPort应该为local_port,remotePort应该为remote_port,此外代码块中的所有双引号都应该去掉。为本地 HTTP 服务启用 HTTPS这段中我实在找不到正确的格式是怎样的,我在全网没找到过有人介绍过这个功能的,按官方WIKI配置也提示出错。
frpc Version
0.54.0
frps Version
0.54.0
System Architecture
linux/amd64
Configurations
测试
Logs
No response
Steps to reproduce
...
Affected area
@superzjg commented on GitHub (Feb 17, 2024):
toml格式配置不需要也不能用 [common] 字段,若加上,会被认为使用ini格式的配置。
配置文件示例请阅读:
https://github.com/fatedier/frp/tree/dev/conf
其中 legacy 目录是旧的 ini 格式,目前还是支持的。你是把两者搞混了,后续会删除ini格式支持