Fix ACL FullPath argument

This commit is contained in:
ChsBuffer
2021-02-22 16:59:33 +08:00
parent cb18816e64
commit eb88be81e2
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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