mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-17 21:15:47 +00:00
Revert mtu list
This commit is contained in:
parent
74554fa32a
commit
c37ad5f156
3 changed files with 3 additions and 5 deletions
|
|
@ -78,7 +78,7 @@ public class Inboundsettings4Ray
|
||||||
|
|
||||||
public string? name { get; set; }
|
public string? name { get; set; }
|
||||||
|
|
||||||
public List<int>? MTU { get; set; }
|
public int? MTU { get; set; }
|
||||||
|
|
||||||
public List<string>? gateway { get; set; }
|
public List<string>? gateway { get; set; }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,7 @@
|
||||||
"protocol": "tun",
|
"protocol": "tun",
|
||||||
"settings": {
|
"settings": {
|
||||||
"name": "xray_tun",
|
"name": "xray_tun",
|
||||||
"MTU": [
|
"MTU": 9000,
|
||||||
9000
|
|
||||||
],
|
|
||||||
"gateway": [
|
"gateway": [
|
||||||
"172.18.0.1/30",
|
"172.18.0.1/30",
|
||||||
"fdfe:dcba:9876::1/126"
|
"fdfe:dcba:9876::1/126"
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ public partial class CoreConfigV2rayService
|
||||||
}
|
}
|
||||||
var tunInbound = JsonUtils.Deserialize<Inbounds4Ray>(EmbedUtils.GetEmbedText(Global.V2raySampleTunInbound)) ?? new Inbounds4Ray { };
|
var tunInbound = JsonUtils.Deserialize<Inbounds4Ray>(EmbedUtils.GetEmbedText(Global.V2raySampleTunInbound)) ?? new Inbounds4Ray { };
|
||||||
tunInbound.settings.name = Utils.IsMacOS() ? $"utun{new Random().Next(99)}" : "xray_tun";
|
tunInbound.settings.name = Utils.IsMacOS() ? $"utun{new Random().Next(99)}" : "xray_tun";
|
||||||
tunInbound.settings.MTU = [_config.TunModeItem.Mtu];
|
tunInbound.settings.MTU = _config.TunModeItem.Mtu;
|
||||||
if (_config.TunModeItem.EnableIPv6Address == false)
|
if (_config.TunModeItem.EnableIPv6Address == false)
|
||||||
{
|
{
|
||||||
tunInbound.settings.gateway = ["172.18.0.1/30"];
|
tunInbound.settings.gateway = ["172.18.0.1/30"];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue