Function start_plugin

Source
pub fn start_plugin(
    plugin: &str,
    plugin_opts: &str,
    raw_addr: SocketAddr,
    is_server: bool,
) -> Result<(SocketAddr, Child)>
Expand description

Starts a plugin with the given options.

Returns listening address and the child process.

For ss-local: the listening address is plugin address.

For ss-remote: the listening address is ss-remote address (ss-remote is behind the plugin).