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 " Interface: $vpn_iface"
|
||||||
log DEBUG " VPN IP: $vpn_ip"
|
log DEBUG " VPN IP: $vpn_ip"
|
||||||
|
|
||||||
# Wait a bit for routes to stabilize
|
# Skip auto-routing - use menu option 4 to setup forwarding manually
|
||||||
log DEBUG "Waiting for routes to stabilize..."
|
log INFO "VPN ready. Use menu option 4 to setup forwarding if needed."
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main
|
# Main
|
||||||
@@ -535,8 +523,7 @@ if [ "$SKIP_AUTO_LOGIN" = true ]; then
|
|||||||
log INFO "Menu mode - skipping auto-login"
|
log INFO "Menu mode - skipping auto-login"
|
||||||
elif check_vpn_status; then
|
elif check_vpn_status; then
|
||||||
echo ""
|
echo ""
|
||||||
log INFO "VPN already connected. Setting up forwarding..."
|
log INFO "VPN already connected. Use menu option 4 to setup forwarding if needed."
|
||||||
setup_forwarding
|
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
log INFO "Auto-starting VPN connection..."
|
log INFO "Auto-starting VPN connection..."
|
||||||
|
|||||||
Reference in New Issue
Block a user