From ecf811df19646f8ebd7af548e0a0ce7e5980c491 Mon Sep 17 00:00:00 2001 From: Liu Dongmiao Date: Mon, 29 Apr 2024 08:48:08 +0800 Subject: [PATCH] update document link to shadowsocks.org --- crates/shadowsocks-service/src/config.rs | 2 +- crates/shadowsocks/src/relay/tcprelay/aead.rs | 4 ++-- src/service/local.rs | 4 ++-- src/service/manager.rs | 2 +- src/service/server.rs | 4 ++-- src/vparser/mod.rs | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/crates/shadowsocks-service/src/config.rs b/crates/shadowsocks-service/src/config.rs index 199038a14950..a7b4e195d710 100644 --- a/crates/shadowsocks-service/src/config.rs +++ b/crates/shadowsocks-service/src/config.rs @@ -1450,7 +1450,7 @@ impl Config { // // local_address is allowed to be NULL, which means to bind to ::1 or 127.0.0.1 // - // https://shadowsocks.org/en/config/quick-guide.html + // https://shadowsocks.org/doc/configs.html #[inline] fn get_local_address(local_address: Option, local_port: u16, ipv6_first: bool) -> ServerAddr { match local_address { diff --git a/crates/shadowsocks/src/relay/tcprelay/aead.rs b/crates/shadowsocks/src/relay/tcprelay/aead.rs index 4d0c7fc88287..1d4e5a22b91d 100644 --- a/crates/shadowsocks/src/relay/tcprelay/aead.rs +++ b/crates/shadowsocks/src/relay/tcprelay/aead.rs @@ -1,6 +1,6 @@ //! AEAD packet I/O facilities //! -//! AEAD protocol is defined in . +//! AEAD protocol is defined in . //! //! ```plain //! TCP request (before encryption) @@ -305,7 +305,7 @@ impl DecryptedReader { }; if plen > MAX_PACKET_SIZE { - // https://shadowsocks.org/en/spec/AEAD-Ciphers.html + // https://shadowsocks.org/doc/aead.html // // AEAD TCP protocol have reserved the higher two bits for future use return Err(ProtocolError::DataTooLong(plen)); diff --git a/src/service/local.rs b/src/service/local.rs index 92aa8847812b..ea9560641531 100644 --- a/src/service/local.rs +++ b/src/service/local.rs @@ -174,7 +174,7 @@ pub fn define_command_line_options(mut app: Command) -> Command { .action(ArgAction::Set) .value_hint(ValueHint::CommandName) .requires("SERVER_ADDR") - .help("SIP003 (https://shadowsocks.org/guide/sip003.html) plugin"), + .help("SIP003 (https://shadowsocks.org/doc/sip003.html) plugin"), ) .arg( Arg::new("PLUGIN_MODE") @@ -199,7 +199,7 @@ pub fn define_command_line_options(mut app: Command) -> Command { .action(ArgAction::Set) .value_hint(ValueHint::Url) .value_parser(vparser::parse_server_url) - .help("Server address in SIP002 (https://shadowsocks.org/guide/sip002.html) URL"), + .help("Server address in SIP002 (https://shadowsocks.org/doc/sip002.html) URL"), ) .group(ArgGroup::new("SERVER_CONFIG") .arg("SERVER_ADDR").arg("SERVER_URL").multiple(true)) diff --git a/src/service/manager.rs b/src/service/manager.rs index 83c6ee03294c..62312ea96586 100644 --- a/src/service/manager.rs +++ b/src/service/manager.rs @@ -93,7 +93,7 @@ pub fn define_command_line_options(mut app: Command) -> Command { .num_args(1) .action(ArgAction::Set) .value_hint(ValueHint::CommandName) - .help("Default SIP003 (https://shadowsocks.org/guide/sip003.html) plugin"), + .help("Default SIP003 (https://shadowsocks.org/doc/sip003.html) plugin"), ) .arg( Arg::new("PLUGIN_MODE") diff --git a/src/service/server.rs b/src/service/server.rs index 7c32c98fe205..cf80efdb9c6a 100644 --- a/src/service/server.rs +++ b/src/service/server.rs @@ -121,7 +121,7 @@ pub fn define_command_line_options(mut app: Command) -> Command { .action(ArgAction::Set) .value_hint(ValueHint::CommandName) .requires("SERVER_ADDR") - .help("SIP003 (https://shadowsocks.org/guide/sip003.html) plugin"), + .help("SIP003 (https://shadowsocks.org/doc/sip003.html) plugin"), ) .arg( Arg::new("PLUGIN_MODE") @@ -490,7 +490,7 @@ pub fn create(matches: &ArgMatches) -> Result<(Runtime, impl Future Result { match ServerConfig::from_url(v) { Ok(t) => Ok(t), - Err(..) => Err("should be SIP002 (https://shadowsocks.org/guide/sip002.html) format".to_owned()), + Err(..) => Err("should be SIP002 (https://shadowsocks.org/doc/sip002.html) format".to_owned()), } }