Skip to content

Commit

Permalink
update document link to shadowsocks.org
Browse files Browse the repository at this point in the history
  • Loading branch information
liudongmiao authored and zonyitoo committed Apr 29, 2024
1 parent c2b2f29 commit ecf811d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion crates/shadowsocks-service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>, local_port: u16, ipv6_first: bool) -> ServerAddr {
match local_address {
Expand Down
4 changes: 2 additions & 2 deletions crates/shadowsocks/src/relay/tcprelay/aead.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! AEAD packet I/O facilities
//!
//! AEAD protocol is defined in <https://shadowsocks.org/en/spec/AEAD.html>.
//! AEAD protocol is defined in <https://shadowsocks.org/doc/aead.html>.
//!
//! ```plain
//! TCP request (before encryption)
Expand Down Expand Up @@ -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));
Expand Down
4 changes: 2 additions & 2 deletions src/service/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion src/service/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/service/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -490,7 +490,7 @@ pub fn create(matches: &ArgMatches) -> Result<(Runtime, impl Future<Output = Exi
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/guide/configs.html"
or configuration file, check more details in https://shadowsocks.org/doc/configs.html"
);
return Err(crate::EXIT_CODE_INSUFFICIENT_PARAMS.into());
}
Expand Down
2 changes: 1 addition & 1 deletion src/vparser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ value_parser_type!(parse_cipher_kind, CipherKind, "invalid cipher");
pub fn parse_server_url(v: &str) -> Result<ServerConfig, String> {
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()),
}
}

Expand Down

0 comments on commit ecf811d

Please sign in to comment.