|
|
|
|
@ -723,7 +723,7 @@ uninstall(){ |
|
|
|
|
systemctl disable --now wg-quick@wgcf >/dev/null 2>&1 |
|
|
|
|
rpm -e wireguard-tools 2>/dev/null |
|
|
|
|
[[ $(systemctl is-active systemd-resolved) != active ]] && systemctl enable --now systemd-resolved >/dev/null 2>&1 |
|
|
|
|
rm -rf /usr/bin/wgcf /etc/wireguard /usr/bin/wireguard-go wgcf-account.toml wgcf-profile.conf /usr/bin/warp /etc/dnsmasq.d/warp.conf /usr/bin/wireproxy |
|
|
|
|
rm -rf /usr/bin/wgcf /etc/wireguard /usr/bin/wireguard-go wgcf-account.toml wgcf-profile.conf /usr/bin/warp /etc/dnsmasq.d/warp.conf /usr/bin/wireproxy /etc/local.d/warp-go.start |
|
|
|
|
[[ -e /etc/gai.conf ]] && sed -i '/^precedence \:\:ffff\:0\:0/d;/^label 2002\:\:\/16/d' /etc/gai.conf |
|
|
|
|
[[ -e /usr/bin/tun.sh ]] && rm -f /usr/bin/tun.sh && sed -i '/tun.sh/d' /etc/crontab |
|
|
|
|
sed -i "/250 warp/d" /etc/iproute2/rt_tables |
|
|
|
|
@ -1448,7 +1448,7 @@ BindAddress = 127.0.0.1:$PORT |
|
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
# 创建 WireProxy systemd 进程守护 |
|
|
|
|
if |
|
|
|
|
if [[ $SYSTEM != Alpine ]]; then |
|
|
|
|
cat > /lib/systemd/system/wireproxy.service << EOF |
|
|
|
|
[Unit] |
|
|
|
|
Description=WireProxy for WARP |
|
|
|
|
|