Remove auto-routing from vpn-sso.sh for isolated testing
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user