Skip to content

Commit 7c5d3cb

Browse files
committed
Updated config URL in help message, fix #1214
1 parent 67232c3 commit 7c5d3cb

File tree

3 files changed

+7
-15
lines changed

3 files changed

+7
-15
lines changed

src/service/local.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ use shadowsocks_service::shadowsocks::relay::socks5::Address;
1414
use shadowsocks_service::{
1515
acl::AccessControl,
1616
config::{
17-
read_variable_field_value,
18-
Config,
19-
ConfigType,
20-
LocalConfig,
21-
LocalInstanceConfig,
22-
ProtocolType,
17+
read_variable_field_value, Config, ConfigType, LocalConfig, LocalInstanceConfig, ProtocolType,
2318
ServerInstanceConfig,
2419
},
2520
local::{loadbalancing::PingBalancer, Server},
@@ -34,8 +29,7 @@ use shadowsocks_service::{
3429
use crate::logging;
3530
use crate::{
3631
config::{Config as ServiceConfig, RuntimeMode},
37-
monitor,
38-
vparser,
32+
monitor, vparser,
3933
};
4034

4135
#[cfg(feature = "local-dns")]
@@ -86,7 +80,7 @@ pub fn define_command_line_options(mut app: Command) -> Command {
8680
.action(ArgAction::Set)
8781
.value_parser(clap::value_parser!(PathBuf))
8882
.value_hint(ValueHint::FilePath)
89-
.help("Shadowsocks configuration file (https://shadowsocks.org/guide/configs.html)"),
83+
.help("Shadowsocks configuration file (https://shadowsocks.org/doc/configs.html)"),
9084
)
9185
.arg(
9286
Arg::new("LOCAL_ADDR")

src/service/manager.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ use shadowsocks_service::{
2424
use crate::logging;
2525
use crate::{
2626
config::{Config as ServiceConfig, RuntimeMode},
27-
monitor,
28-
vparser,
27+
monitor, vparser,
2928
};
3029

3130
/// Defines command line options
@@ -39,7 +38,7 @@ pub fn define_command_line_options(mut app: Command) -> Command {
3938
.action(ArgAction::Set)
4039
.value_parser(clap::value_parser!(PathBuf))
4140
.value_hint(ValueHint::FilePath)
42-
.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."),
41+
.help("Shadowsocks configuration file (https://shadowsocks.org/doc/configs.html), the only required fields are \"manager_address\" and \"manager_port\". Servers defined will be created when process is started."),
4342
)
4443
.arg(
4544
Arg::new("UDP_ONLY")

src/service/server.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ use shadowsocks_service::{
2222
use crate::logging;
2323
use crate::{
2424
config::{Config as ServiceConfig, RuntimeMode},
25-
monitor,
26-
vparser,
25+
monitor, vparser,
2726
};
2827

2928
/// Defines command line options
@@ -37,7 +36,7 @@ pub fn define_command_line_options(mut app: Command) -> Command {
3736
.action(ArgAction::Set)
3837
.value_parser(clap::value_parser!(PathBuf))
3938
.value_hint(ValueHint::FilePath)
40-
.help("Shadowsocks configuration file (https://shadowsocks.org/guide/configs.html)"),
39+
.help("Shadowsocks configuration file (https://shadowsocks.org/doc/configs.html)"),
4140
)
4241
.arg(
4342
Arg::new("OUTBOUND_BIND_ADDR")

0 commit comments

Comments
 (0)