pull/543/head
YFdyh000 2020-03-15 08:23:52 +08:00
parent ec3c471df6
commit 2add30cc77
1 changed files with 2 additions and 4 deletions

View File

@ -43,8 +43,7 @@ namespace v2rayN.Handler
if (Global.reloadV2ray) if (Global.reloadV2ray)
{ {
string fileName = Utils.GetPath(v2rayConfigRes); string fileName = Utils.GetPath(v2rayConfigRes);
string msg; if (V2rayConfigHandler.GenerateClientConfig(config, fileName, false, out string msg) != 0)
if (V2rayConfigHandler.GenerateClientConfig(config, fileName, false, out msg) != 0)
{ {
ShowMsg(false, msg); ShowMsg(false, msg);
} }
@ -64,8 +63,7 @@ namespace v2rayN.Handler
if (Global.reloadV2ray) if (Global.reloadV2ray)
{ {
string fileName = Utils.GetPath(v2rayConfigRes); string fileName = Utils.GetPath(v2rayConfigRes);
string msg; if (V2rayConfigHandler.GenerateClientSpeedtestConfig(config, _selecteds, fileName, out string msg) != 0)
if (V2rayConfigHandler.GenerateClientSpeedtestConfig(config, _selecteds, fileName, out msg) != 0)
{ {
ShowMsg(false, msg); ShowMsg(false, msg);
} }