From 909287ab90232f57fdf41ccf11b8cd1f53cff089 Mon Sep 17 00:00:00 2001 From: Alireza Date: Sun, 17 Mar 2024 12:30:05 +0100 Subject: [PATCH] fragment + sockopt options --- v2rayN/v2rayN/Handler/ConfigHandler.cs | 2 +- v2rayN/v2rayN/Model/V2rayConfig.cs | 36 ++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/v2rayN/v2rayN/Handler/ConfigHandler.cs b/v2rayN/v2rayN/Handler/ConfigHandler.cs index 89cdcf3d..774c5a6a 100644 --- a/v2rayN/v2rayN/Handler/ConfigHandler.cs +++ b/v2rayN/v2rayN/Handler/ConfigHandler.cs @@ -1176,7 +1176,7 @@ namespace v2rayN.Handler } return false; } - + ProfileItem profileItem = new(); //Is v2ray array configuration diff --git a/v2rayN/v2rayN/Model/V2rayConfig.cs b/v2rayN/v2rayN/Model/V2rayConfig.cs index 6fe71dc8..18b7ca20 100644 --- a/v2rayN/v2rayN/Model/V2rayConfig.cs +++ b/v2rayN/v2rayN/Model/V2rayConfig.cs @@ -253,6 +253,29 @@ namespace v2rayN.Model /// /// public int? userLevel { get; set; } + + /// + /// + /// + public FreedomFragment4Ray? fragment { get; set; } + } + + public class FreedomFragment4Ray + { + /// + /// Packets + /// + public string packets { get; set; } + + /// + /// Length + /// + public string length { get; set; } + + /// + /// Interval + /// + public string interval { get; set; } } public class VnextItem4Ray @@ -664,6 +687,19 @@ namespace v2rayN.Model public class Sockopt4Ray { + /// + /// Dialer Proxy + /// public string? dialerProxy { get; set; } + + /// + /// TCP keep-alive idle time + /// + public int? tcpKeepAliveIdle { get; set; } + + /// + /// TCP no delay option + /// + public bool? TcpNoDelay { get; set; } } } \ No newline at end of file