mirror of
https://github.com/mack-a/v2ray-agent.git
synced 2026-09-02 13:56:37 +00:00
Merge branch 'master' of github.com:mack-a/v2ray-agent
This commit is contained in:
+2
-2
@@ -7258,7 +7258,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
|
||||
@@ -7279,7 +7279,7 @@ removeWireGuardRoute() {
|
||||
|
||||
# sing-box
|
||||
if [[ -n "${singBoxConfigPath}" ]]; then
|
||||
removeSingBoxRouteRule "wireguard_out_${type}"
|
||||
removeSingBoxRouteRule "wireguard_endpoints_${type}"
|
||||
fi
|
||||
|
||||
unInstallWireGuard "${type}"
|
||||
|
||||
Reference in New Issue
Block a user