From 6a04bd911a259d8a640ed7b4a5514feca4048cad Mon Sep 17 00:00:00 2001 From: alexz Date: Thu, 25 Dec 2025 00:23:00 +0000 Subject: [PATCH] Remove auto-routing from vpn-sso.sh for isolated testing --- apps/rego-tunnel-linux/source/vpn-sso.sh | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/apps/rego-tunnel-linux/source/vpn-sso.sh b/apps/rego-tunnel-linux/source/vpn-sso.sh index 36e9ff0..505d2ce 100755 --- a/apps/rego-tunnel-linux/source/vpn-sso.sh +++ b/apps/rego-tunnel-linux/source/vpn-sso.sh @@ -510,20 +510,8 @@ start_anyconnect() { log DEBUG " Interface: $vpn_iface" log DEBUG " VPN IP: $vpn_ip" - # Wait a bit for routes to stabilize - log DEBUG "Waiting for routes to stabilize..." - sleep 3 - - # Setup forwarding - setup_forwarding - - # Test connection - log INFO "Testing connection to $TARGET_IP..." - if ping -c 2 -W 3 "$TARGET_IP" &>/dev/null; then - log INFO "Connection test: ${GREEN}SUCCESS${NC}" - else - log WARN "Connection test: ${RED}FAILED${NC} (may need manual route on Windows)" - fi + # Skip auto-routing - use menu option 4 to setup forwarding manually + log INFO "VPN ready. Use menu option 4 to setup forwarding if needed." } # Main @@ -535,8 +523,7 @@ if [ "$SKIP_AUTO_LOGIN" = true ]; then log INFO "Menu mode - skipping auto-login" elif check_vpn_status; then echo "" - log INFO "VPN already connected. Setting up forwarding..." - setup_forwarding + log INFO "VPN already connected. Use menu option 4 to setup forwarding if needed." else echo "" log INFO "Auto-starting VPN connection..."