Skip to content

Commit

Permalink
chg: fragment to xray_fragment to avoid any inconsistency in future
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddify-com committed Jul 27, 2024
1 parent f80dee6 commit fa92de7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions option/xray.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package option

import "github.com/xtls/xray-core/proxy/freedom"
import "github.com/xtls/xray-core/infra/conf"

type XrayOutboundOptions struct {
DialerOptions
Network NetworkList `json:"network,omitempty"`
UDPOverTCP *UDPOverTCPOptions `json:"udp_over_tcp,omitempty"`
XrayOutboundJson *map[string]any `json:"xray_outbound_raw"`
Fragment *freedom.Fragment `json:"fragment"`
Fragment *conf.Fragment `json:"xray_fragment"`
}
2 changes: 1 addition & 1 deletion outbound/xray.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func NewXray(ctx context.Context, router adapter.Router, logger log.ContextLogge
"protocol": "freedom",
"settings": map[string]any{
"domainStrategy": "AsIs",
"fragment": options.Fragment,
"fragment": options.Fragment,
},
"streamSettings": map[string]any{
"sockopt": map[string]any{
Expand Down

0 comments on commit fa92de7

Please sign in to comment.