websocket_relay/
lib.rs

1//! WebSocket Relay Server
2//!
3//! A WebSocket relay that routes connections based on Host headers to different TCP backends.
4//! Supports TLS termination, IP filtering, and client IP extraction from X-Forwarded-For headers.
5
6pub mod config;
7pub mod proxy;
8pub mod security;
9pub mod stream;
10pub mod tls;
11
12// Re-export commonly used types and functions
13pub use config::{Config, ListenConfig, TargetConfig, TlsConfig, load_config};
14pub use proxy::{BUFFER_SIZE, handle_connection, handle_socket};
15pub use security::{is_proxy_ip_allowed, parse_original_client_ip};
16pub use stream::StreamType;
17pub use tls::load_tls_config;