Merge pull request #1205 from zetaloop/fix-singbox-wireguard-endpoints-cleanup

fix(脚本): 修复sing-box下wireguard卸载时命名不一致
master
mack-a 2025-08-16 17:02:55 +08:00 committed by GitHub
commit 9a889fd2a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -7255,7 +7255,7 @@ unInstallWireGuard() {
fi
if [[ -n "${singBoxConfigPath}" ]]; then
if [[ ! -f "${singBoxConfigPath}wireguard_out_IPv6_route.json" && ! -f "${singBoxConfigPath}wireguard_out_IPv4_route.json" ]]; then
if [[ ! -f "${singBoxConfigPath}wireguard_endpoints_IPv6_route.json" && ! -f "${singBoxConfigPath}wireguard_endpoints_IPv4_route.json" ]]; then
rm "${singBoxConfigPath}wireguard_outbound.json" >/dev/null 2>&1
rm -rf /etc/v2ray-agent/warp/config >/dev/null 2>&1
fi
@ -7276,7 +7276,7 @@ removeWireGuardRoute() {
# sing-box
if [[ -n "${singBoxConfigPath}" ]]; then
removeSingBoxRouteRule "wireguard_out_${type}"
removeSingBoxRouteRule "wireguard_endpoints_${type}"
fi
unInstallWireGuard "${type}"