mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #4108] 请问frpc中可以设置多个serverAddr或者同时设置一个v4和一个V6的serverAddr么 #3242
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#3242
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 @TaoRone on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4108
Bug Description
目前frps的机器是双栈
不过ipv4最近被打,因此经常堵塞,于是把frps设置为bind_add = [::]
那么frpc机器上直接使用server_addr = ::自然没问题,但怎么同时设置frpc支持v4的server_addr 和v6的server_addr ?
我注意到配置文件是这样描述的:
IPv6 地址或主机名必须使用方括号括起来,例如 "[::1]:80","[ipv6-host]:http" 或 "[ipv6-host%zone]:80"
对于单个 serverAddr 字段,不需要使用方括号,例如 serverAddr = "::"。
那么要同时设置frpc的双栈,是不是使用以下方式?:
frpc Version
latest
frps Version
latest
System Architecture
linux/amd64
Configurations
RT
Logs
No response
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (Mar 28, 2024):
不支持
@xqzr commented on GitHub (Mar 29, 2024):
使用域名
@TaoRone commented on GitHub (Mar 29, 2024):
谢谢大佬们解答~~