mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2063] frpc 在网络切换时,未即时刷新域名解析服务器,导致无限重连 #1641
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#1641
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 @wangzexi on GitHub (Nov 7, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2063
我现在连接在
无线网甲 (192.168.43.1)。此时该
无线网甲路由器关闭,操作系统自动切换至无线网乙 (192.168.2.1)。frpc发现断开,开始重连,但frpc仍然使用先前的无线网甲的网关地址作为 DNS 去解析frps服务器域名。而
192.168.43.1/24与192.168.2.1/24不在同一网络内,导致frps域名无法解析,进入无限重连状态。经测试,手动重启
frpc容器即可恢复连接。frpc:0.34.1
系统:Armbian 20.08.1 Orangepizero buster current 5.8.5
Docker 镜像:snowdreamtech/frpc
@Becods commented on GitHub (Nov 7, 2020):
既然重启就能解决的事情
那么就写一个插件/脚本来解决它吧
主机层的网络切换应该不会通知到容器层,容器层应该只会感知到无法连接到互联网
不知你的docker设置的是桥接还是直连,我还是建议指定dns服务器,改改dockerfile的事情
@fatedier commented on GitHub (Nov 8, 2020):
Maybe it's caused by docker. SSH to your docker container to see what's the content of
/etc/resolv.conf.