Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/service/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand All @@ -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))
Expand Down
4 changes: 2 additions & 2 deletions src/service/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
6 changes: 3 additions & 3 deletions src/service/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion src/validator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
}
}

Expand Down