Fix update the pre version

pull/4049/head
2dust 2023-06-18 16:18:50 +08:00
parent d329646a52
commit 9664d1d77f
4 changed files with 4 additions and 4 deletions

View File

@ -629,7 +629,7 @@ namespace v2rayN.Handler
server.security = details.Groups["method"].Value;
server.id = details.Groups["password"].Value;
server.address = details.Groups["hostname"].Value;
server.port = int.Parse(details.Groups["port"].Value);
server.port = Utils.ToInt(details.Groups["port"].Value);
return server;
}

View File

@ -514,7 +514,7 @@ namespace v2rayN.Handler
throw new ArgumentException("Type");
}
if (curVersion >= version)
if (curVersion >= version && version != new SemanticVersion(0, 0, 0))
{
AbsoluteCompleted?.Invoke(this, new ResultEventArgs(false, message));
return;

View File

@ -160,7 +160,7 @@ namespace v2rayN.Mode
public class TunModeItem
{
public bool enableTun { get; set; }
public bool strictRoute { get; set; }
public bool strictRoute { get; set; } = true;
public string stack { get; set; }
public int mtu { get; set; }
public bool enableExInbound { get; set; }

View File

@ -45,7 +45,7 @@ namespace v2rayN.Tool
this.major = 0;
this.minor = 0;
this.patch = 0;
this.version = "0.0.0";
//this.version = "0.0.0";
}
}