Update centos.sh

This commit is contained in:
fscarmen
2021-03-18 20:44:49 +08:00
committed by GitHub
parent 645668a6ba
commit 67fe1cc7a7
+1
View File
@@ -18,6 +18,7 @@ echo | ./wgcf register
# 生成 Wire-Guard 配置文件 (wgcf-profile.conf)
./wgcf generate
# 修改配置文件 wgcf-profile.conf 的内容,使得 IPv4 的流量均被 WireGuard 接管,让 IPv4 的流量通过 WARP IPv6 节点以 NAT 的方式访问外部 IPv4 网络。为防止当节点发生故障时 DNS 请求无法发出修改为 IPv6 地址的 DNS
sed -i '/\:\:\/0/d' wgcf-profile.conf | sed -i 's/engage.cloudflareclient.com/[2606:4700:d0::a29f:c001]/g' wgcf-profile.conf | sed -i 's/1.1.1.1/2620:fe::10,2001:4860:4860::8888,2606:4700:4700::1111/g' wgcf-profile.conf