Skip to main content

run_shadowsocks_server

Function run_shadowsocks_server 

Source
pub async fn run_shadowsocks_server(
    listener: &TcpListener,
    password: &str,
    method: CipherMethod,
) -> Result<(), ShadowsocksError>
Expand description

Run a Shadowsocks server that relays traffic to a target.

This is a test helper - not suitable for production use. Compatible with shadowsocks_connect from crate::tcp.