Browse Source

Improve tun mode

pull/2962/head
2dust 2 years ago
parent
commit
8cbf6bfffa
  1. 2
      v2rayN/v2rayN/Handler/TunHandler.cs
  2. 2
      v2rayN/v2rayN/Handler/UpdateHandle.cs

2
v2rayN/v2rayN/Handler/TunHandler.cs

@ -206,7 +206,7 @@ namespace v2rayN.Base
StartInfo = new ProcessStartInfo
{
FileName = fileName,
Arguments = $"run -c {Utils.GetConfigPath(_tunConfigName)}",
Arguments = $"run -c \"{Utils.GetConfigPath(_tunConfigName)}\"",
WorkingDirectory = Utils.GetConfigPath(),
UseShellExecute = showWindow,
CreateNoWindow = !showWindow,

2
v2rayN/v2rayN/Handler/UpdateHandle.cs

@ -55,7 +55,7 @@ namespace v2rayN.Handler
StartInfo = new ProcessStartInfo
{
FileName = "v2rayUpgrade.exe",
Arguments = "\"" + fileName + "\"",
Arguments = $"\"{fileName}\"",
WorkingDirectory = Utils.StartupPath()
}
};

Loading…
Cancel
Save