mirror of
https://github.com/shadowsocks/shadowsocks-rust.git
synced 2026-02-09 01:59:16 +08:00
- servers creating from command line options would use TTY,
SS_SERVER_PASSWORD and SS_SERVER_${SERVER_ADDR}_PASSWORD environment
variables
- servers in configuration file "password" would allow ${VAR_NAME} to
read from environment variable VAR_NAME
fixes #419
20 lines
557 B
Rust
20 lines
557 B
Rust
//! Shadowsocks service command line utilities
|
|
|
|
pub mod allocator;
|
|
pub mod config;
|
|
#[cfg(unix)]
|
|
pub mod daemonize;
|
|
#[cfg(feature = "logging")]
|
|
pub mod logging;
|
|
pub mod monitor;
|
|
pub mod password;
|
|
pub mod validator;
|
|
|
|
pub const EXIT_CODE_SERVER_EXIT_UNEXPECTEDLY: i32 = exitcode::SOFTWARE;
|
|
pub const EXIT_CODE_SERVER_ABORTED: i32 = exitcode::SOFTWARE;
|
|
pub const EXIT_CODE_LOAD_CONFIG_FAILURE: i32 = exitcode::CONFIG;
|
|
pub const EXIT_CODE_LOAD_ACL_FAILURE: i32 = exitcode::CONFIG;
|
|
|
|
#[allow(dead_code)]
|
|
pub const BUILD_TIME: &str = build_time::build_time_utc!();
|