mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4731] 官方推荐的配置文件驼峰写法,在 0.61.2 中反而需要小写加下划线才能生效 #3738
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#3738
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 @ignite-404 on GitHub (Mar 27, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4731
Bug Description
比如在 frpc 中官方写法是 serverAddr,我本地测试了要 server_addr 才生效
frpc Version
ghcr.io/fatedier/frpc:v0.61.2
frps Version
ghcr.io/fatedier/frps:v0.61.2
System Architecture
client: macos-arm,server:linux/amd64
Configurations
client
[common]
服务端公网IP和端口
serverAddr = "x.x.x.x"
serverPort = 7000
加密传输配置
auth.method = "token"
auth.token = "fsdfsag"
transport.useEncryption = true # 启用加密传输8,10
transport.useCompression = true # 启用压缩提升效率8
proxies
定义HTTP服务的TCP穿透规则
name = "web_8000"
type = "tcp"
localIP = "localhost"
localPort = 8000
远程访问端口(通过x.x.x.x:8000访问本地8080)
remotePort = 8001
可选:额外加密层(需服务端支持TLS)
transport.tls.enable = true # 若需更高安全级别9
server
[common]
服务端监听端口(需与客户端一致)
bindPort = 7000
设置加密传输的认证Token(需与客户端一致)
auth.method = "token"
auth.token = "fasdgdas" # 建议通过pwgen生成1
仪表盘配置(可选)
webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "adminx"
webServer.password = "gdfsf"
启用加密传输(需客户端同步开启)
transport.tcpMux = false # 关闭多路复用以提高加密兼容性1,8
Logs
No response
Steps to reproduce
...
Affected area