Port forwarding CLI utility written in Rust with allowlists, TLS, iptables support, round-robin forwarding (load balancing), and IP-to-destination mapping.
#[cfg(all(feature ="tls-native", feature ="tls-rustls"))]compile_error!("only one of tls-native or tls-rustls can be enabled.");#[cfg(feature ="tls-native")]modnative_tls;#[cfg(feature ="tls-rustls")]modrustls;#[cfg(feature ="tls-native")]pubfncreate_tls_factory()->native_tls::NativeTlsFactory{native_tls::NativeTlsFactory::new()}#[cfg(feature ="tls-rustls")]pubfncreate_tls_factory()->rustls::RustlsFactory{rustls::RustlsFactory::new()}