From 9bc5c1d070645bcabdd44095df7b1592ab6f3365 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Wed, 1 Jan 2025 18:42:50 +0100 Subject: tcpNoDelay to penetrate --- sub/subJsonService.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sub') diff --git a/sub/subJsonService.go b/sub/subJsonService.go index 680a078d..8786541e 100644 --- a/sub/subJsonService.go +++ b/sub/subJsonService.go @@ -21,7 +21,7 @@ type SubJsonService struct { configJson map[string]interface{} defaultOutbounds []json_util.RawMessage fragment string - noises string + noises string mux string inboundService service.InboundService @@ -61,7 +61,7 @@ func NewSubJsonService(fragment string, noises string, mux string, rules string, configJson: configJson, defaultOutbounds: defaultOutbounds, fragment: fragment, - noises: noises, + noises: noises, mux: mux, SubService: subService, } @@ -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, "tcpMptcp": true, "tcpNoDelay": true}`) + streamSettings["sockopt"] = json_util.RawMessage(`{"dialerProxy": "fragment", "tcpKeepAliveIdle": 100, "tcpMptcp": true, "penetrate": true}`) } // remove proxy protocol -- cgit v1.2.3