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 {