Files
shadowsocks-rust/bin/ssserver.rs
T
zonyitoo 486e1d7279 Local, Server & Manager unified binary ssservice
- fixes #698
- Refactored shadowsocks-rust crate structure. Common code are put into
a separated library
2021-11-27 17:36:16 +08:00

23 lines
754 B
Rust

//! This is a binary running in the server environment
//!
//! You have to provide all needed configuration attributes via command line parameters,
//! or you could specify a configuration file. The format of configuration file is defined
//! in mod `config`.
//!
//! *It should be notice that the extended configuration file is not suitable for the server
//! side.*
use clap::clap_app;
use shadowsocks_rust::service::server;
fn main() {
let mut app = clap_app!(shadowsocks =>
(version: shadowsocks_rust::VERSION)
(about: "A fast tunnel proxy that helps you bypass firewalls. (https://shadowsocks.org)")
);
app = server::define_command_line_options(app);
let matches = app.get_matches();
server::main(&matches);
}