• Stefy Lanza (nextime / spora )'s avatar
    Implement comprehensive tunnel status tracking and IP autodetection · ecd74f26
    Stefy Lanza (nextime / spora ) authored
    - Add IP autodetection function in wssshlib.c that detects local IP excluding loopback
    - Create comprehensive Tunnel class in wsssd/tunnel.py with all required attributes:
      * client_id, tunnel_id, status, protocol, tunnel_type
      * dst_public_ip, dst_public_port, dst_private_ip, dst_private_port
      * src_public_ip, src_private_ip
    - Update WebSocket handling to use Tunnel objects throughout lifecycle
    - Add IP detection utilities for public/private IPs
    - Maintain original tunnel binding behavior (127.0.0.1)
    - Update server shutdown process for proper tunnel cleanup
    - Test implementation with virtual environment
    ecd74f26
wssshlib.c 7.37 KB