Skip to content

Commit

Permalink
show fragment option
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jul 30, 2024
1 parent 0dd13bb commit b5fbdcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions ray2sing/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion ray2sing/xray_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b5fbdcf

Please sign in to comment.