From 3d8cacfc6723b87d28c179a5665ac50e4bf8d8fe Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 7 Jul 2022 12:12:14 +0300 Subject: [PATCH] Update broken Wiki/documentation URLs --- src/service/local.rs | 6 +++--- src/service/manager.rs | 4 ++-- src/service/server.rs | 6 +++--- src/validator/mod.rs | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/service/local.rs b/src/service/local.rs index f5896c93534e..7cae2945ecdb 100644 --- a/src/service/local.rs +++ b/src/service/local.rs @@ -38,7 +38,7 @@ pub fn define_command_line_options(mut app: Command<'_>) -> Command<'_> { .short('c') .long("config") .takes_value(true) - .help("Shadowsocks configuration file (https://shadowsocks.org/en/config/quick-guide.html)"), + .help("Shadowsocks configuration file (https://shadowsocks.org/guide/configs.html)"), ) .arg( Arg::new("LOCAL_ADDR") @@ -113,7 +113,7 @@ pub fn define_command_line_options(mut app: Command<'_>) -> Command<'_> { .long("plugin") .takes_value(true) .requires("SERVER_ADDR") - .help("SIP003 (https://shadowsocks.org/en/wiki/Plugin.html) plugin"), + .help("SIP003 (https://shadowsocks.org/guide/sip003.html) plugin"), ) .arg( Arg::new("PLUGIN_OPT") @@ -127,7 +127,7 @@ pub fn define_command_line_options(mut app: Command<'_>) -> Command<'_> { .long("server-url") .takes_value(true) .validator(validator::validate_server_url) - .help("Server address in SIP002 (https://shadowsocks.org/en/wiki/SIP002-URI-Scheme.html) URL"), + .help("Server address in SIP002 (https://shadowsocks.org/guide/sip002.html) URL"), ) .group(ArgGroup::new("SERVER_CONFIG") .arg("SERVER_ADDR").arg("URL").multiple(true)) diff --git a/src/service/manager.rs b/src/service/manager.rs index 331278b8cbbb..7265fdce48b9 100644 --- a/src/service/manager.rs +++ b/src/service/manager.rs @@ -36,7 +36,7 @@ pub fn define_command_line_options(mut app: Command<'_>) -> Command<'_> { .short('c') .long("config") .takes_value(true) - .help("Shadowsocks configuration file (https://shadowsocks.org/en/config/quick-guide.html), the only required fields are \"manager_address\" and \"manager_port\". Servers defined will be created when process is started."), + .help("Shadowsocks configuration file (https://shadowsocks.org/guide/configs.html), the only required fields are \"manager_address\" and \"manager_port\". Servers defined will be created when process is started."), ) .arg( Arg::new("UDP_ONLY") @@ -83,7 +83,7 @@ pub fn define_command_line_options(mut app: Command<'_>) -> Command<'_> { .long("plugin") .takes_value(true) .requires("SERVER_ADDR") - .help("Default SIP003 (https://shadowsocks.org/en/wiki/Plugin.html) plugin"), + .help("Default SIP003 (https://shadowsocks.org/guide/sip003.html) plugin"), ) .arg( Arg::new("PLUGIN_OPT") diff --git a/src/service/server.rs b/src/service/server.rs index 2e244d5c0d8b..141ee921c23e 100644 --- a/src/service/server.rs +++ b/src/service/server.rs @@ -34,7 +34,7 @@ pub fn define_command_line_options(mut app: Command<'_>) -> Command<'_> { .short('c') .long("config") .takes_value(true) - .help("Shadowsocks configuration file (https://shadowsocks.org/en/config/quick-guide.html)"), + .help("Shadowsocks configuration file (https://shadowsocks.org/guide/configs.html)"), ) .arg( Arg::new("OUTBOUND_BIND_ADDR") @@ -106,7 +106,7 @@ pub fn define_command_line_options(mut app: Command<'_>) -> Command<'_> { .long("plugin") .takes_value(true) .requires("SERVER_ADDR") - .help("SIP003 (https://shadowsocks.org/en/wiki/Plugin.html) plugin"), + .help("SIP003 (https://shadowsocks.org/guide/sip003.html) plugin"), ) .arg( Arg::new("PLUGIN_OPT") @@ -457,7 +457,7 @@ pub fn main(matches: &ArgMatches) -> ExitCode { eprintln!( "missing proxy servers, consider specifying it by \ --server-addr, --encrypt-method, --password command line option, \ - or configuration file, check more details in https://shadowsocks.org/en/config/quick-guide.html" + or configuration file, check more details in https://shadowsocks.org/guide/configs.html" ); return crate::EXIT_CODE_INSUFFICIENT_PARAMS.into(); } diff --git a/src/validator/mod.rs b/src/validator/mod.rs index b26084abcb2a..e6d1df69ed62 100644 --- a/src/validator/mod.rs +++ b/src/validator/mod.rs @@ -47,7 +47,7 @@ validate_type!(validate_usize, usize, "should be unsigned integer"); pub fn validate_server_url(v: &str) -> Result<(), String> { match ServerConfig::from_url(v) { Ok(..) => Ok(()), - Err(..) => Err("should be SIP002 (https://shadowsocks.org/en/wiki/SIP002-URI-Scheme.html) format".to_owned()), + Err(..) => Err("should be SIP002 (https://shadowsocks.org/guide/sip002.html) format".to_owned()), } }