mirror of
https://github.com/netchx/netch.git
synced 2026-04-03 19:35:10 +08:00
Fix ACL FullPath argument
This commit is contained in:
@@ -67,7 +67,7 @@ namespace Netch.Servers.Shadowsocks
|
||||
argument.Append($" --plugin {server.Plugin}" + $" --plugin-opts \"{server.PluginOption}\"");
|
||||
|
||||
if (mode.BypassChina)
|
||||
argument.Append($" --acl {Path.GetFullPath(File.Exists(Global.UserACL) ? Global.UserACL : Global.BuiltinACL)}");
|
||||
argument.Append($" --acl \"{Path.GetFullPath(File.Exists(Global.UserACL) ? Global.UserACL : Global.BuiltinACL)}\"");
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace Netch.Servers.ShadowsocksR
|
||||
|
||||
argument.Append($" -b {this.LocalAddress()} -l {this.Socks5LocalPort()} -u");
|
||||
if (mode.BypassChina)
|
||||
argument.Append($" --acl {Path.GetFullPath(File.Exists(Global.UserACL) ? Global.UserACL : Global.BuiltinACL)}");
|
||||
argument.Append($" --acl \"{Path.GetFullPath(File.Exists(Global.UserACL) ? Global.UserACL : Global.BuiltinACL)}\"");
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user