Improve tun mode

pull/2962/head
2dust 2 years ago
parent 52debcdcb3
commit 8cbf6bfffa

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

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

Loading…
Cancel
Save