• Stefy Lanza (nextime / spora )'s avatar
    Fix bidirectional tunnel for wssshc client · e86758cb
    Stefy Lanza (nextime / spora ) authored
    - Modified handle_tunnel_request() to connect to local SSH server (localhost:22)
    - Added forward_ws_to_local() function for WebSocket to local SSH forwarding
    - Updated handle_tunnel_data() to properly route data to correct socket
    - wssshc now establishes bidirectional forwarding between WebSocket and local SSH server
    - Fixed tunnel blocking issue by implementing proper data flow in both directions
    - Added thread for handling data from local SSH server back to WebSocket
    e86758cb
tunnel.c 24.7 KB