• Stefy Lanza (nextime / spora )'s avatar
    Fix socket availability issue in handle_tunnel_data · 35e6e78f
    Stefy Lanza (nextime / spora ) authored
    - Added check for valid target socket before attempting to send data
    - Prevents 'Bad file descriptor' errors when local socket isn't ready yet
    - Added debug message when target socket is not available
    - Ensures tunnel_data messages are ignored until SSH connection is established
    - Fixes race condition between WebSocket message arrival and SSH client connection
    35e6e78f
tunnel.c 26.8 KB