mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
core: 修复国内机器误判为 IPv6 不通
原因是用了 ping dnspod 公共 IPv6 DNS 作为连通性检测 但是这个 DNS 禁 ping
This commit is contained in:
@ -10,10 +10,10 @@ ipv6_gateway=$5
|
||||
is_in_china=$6
|
||||
|
||||
if $is_in_china; then
|
||||
ipv4_dns1='119.29.29.29'
|
||||
ipv4_dns2='223.5.5.5'
|
||||
ipv6_dns1='2402:4e00::'
|
||||
ipv6_dns2='2400:3200::1'
|
||||
ipv4_dns1='223.5.5.5'
|
||||
ipv4_dns2='119.29.29.29'
|
||||
ipv6_dns1='2400:3200::1'
|
||||
ipv6_dns2='2402:4e00::'
|
||||
else
|
||||
ipv4_dns1='1.1.1.1'
|
||||
ipv4_dns2='8.8.8.8'
|
||||
|
||||
Reference in New Issue
Block a user