From b5fbdcfdfd1072115e55cc48ce34a23b582c6903 Mon Sep 17 00:00:00 2001 From: hiddify <114227601+hiddify-com@users.noreply.github.com> Date: Tue, 30 Jul 2024 08:02:27 +0200 Subject: [PATCH] show fragment option --- ray2sing/common.go | 4 +--- ray2sing/xray_common.go | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ray2sing/common.go b/ray2sing/common.go index 89534f5..bfd710a 100644 --- a/ray2sing/common.go +++ b/ray2sing/common.go @@ -103,9 +103,7 @@ func getFragmentOptions(decoded map[string]string) *option.TLSFragmentOptions { if trick.Size != "" { trick.Enabled = true } - if !trick.Enabled { - return nil - } + return &trick } func getMuxOptions(decoded map[string]string) *option.OutboundMultiplexOptions { diff --git a/ray2sing/xray_common.go b/ray2sing/xray_common.go index 714d8bd..5424015 100644 --- a/ray2sing/xray_common.go +++ b/ray2sing/xray_common.go @@ -208,7 +208,7 @@ func getXrayFragmentOptions(decoded map[string]string) *conf.Fragment { trick := conf.Fragment{} fragment := decoded["fragment"] if fragment == "" { - return nil + return &trick } splt := strings.Split(fragment, ",") if len(splt) > 2 {