From ae37131b4bf136b059eed5cb664537f80ac081b0 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Wed, 1 Jan 2025 18:57:56 +0100 Subject: [PATCH] tcpNoDelay to penetrate --- sub/subJsonService.go | 2 +- web/assets/js/model/outbound.js | 8 ++++---- web/html/xui/form/outbound.html | 4 ++-- web/html/xui/settings.html | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/sub/subJsonService.go b/sub/subJsonService.go index 5f994d87..27749fe4 100644 --- a/sub/subJsonService.go +++ b/sub/subJsonService.go @@ -217,7 +217,7 @@ func (s *SubJsonService) streamData(stream string) map[string]interface{} { delete(streamSettings, "sockopt") if s.fragment != "" { - streamSettings["sockopt"] = json_util.RawMessage(`{"dialerProxy": "fragment", "tcpKeepAliveIdle": 100, "tcpNoDelay": true}`) + streamSettings["sockopt"] = json_util.RawMessage(`{"dialerProxy": "fragment", "tcpKeepAliveIdle": 100, "penetrate": true}`) } // remove proxy protocol diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index dd4f09b1..3bf7e944 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -373,12 +373,12 @@ class RealityStreamSettings extends CommonClass { }; class SockoptStreamSettings extends CommonClass { - constructor(dialerProxy = "", tcpFastOpen = false, tcpKeepAliveInterval = 0, tcpNoDelay = false) { + constructor(dialerProxy = "", tcpFastOpen = false, tcpKeepAliveInterval = 0, penetrate = false) { super(); this.dialerProxy = dialerProxy; this.tcpFastOpen = tcpFastOpen; this.tcpKeepAliveInterval = tcpKeepAliveInterval; - this.tcpNoDelay = tcpNoDelay; + this.penetrate = penetrate; } static fromJson(json = {}) { @@ -387,7 +387,7 @@ class SockoptStreamSettings extends CommonClass { json.dialerProxy, json.tcpFastOpen, json.tcpKeepAliveInterval, - json.tcpNoDelay, + json.penetrate, ); } @@ -396,7 +396,7 @@ class SockoptStreamSettings extends CommonClass { dialerProxy: this.dialerProxy, tcpFastOpen: this.tcpFastOpen, tcpKeepAliveInterval: this.tcpKeepAliveInterval, - tcpNoDelay: this.tcpNoDelay, + penetrate: this.penetrate, }; } } diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 4ef6b489..e3230ae7 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -466,8 +466,8 @@ - - + + diff --git a/web/html/xui/settings.html b/web/html/xui/settings.html index b61f445a..a2c2829e 100644 --- a/web/html/xui/settings.html +++ b/web/html/xui/settings.html @@ -459,7 +459,7 @@ streamSettings: { sockopt: { tcpKeepAliveIdle: 100, - tcpNoDelay: true + penetrate: true } } },