From fa92de705164b15b59d211c257d1310a986fe660 Mon Sep 17 00:00:00 2001 From: hiddify-com <114227601+hiddify-com@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:39:20 +0200 Subject: [PATCH] chg: fragment to xray_fragment to avoid any inconsistency in future --- option/xray.go | 4 ++-- outbound/xray.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/option/xray.go b/option/xray.go index 8039d00cde..7f3721fbae 100644 --- a/option/xray.go +++ b/option/xray.go @@ -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"` } diff --git a/outbound/xray.go b/outbound/xray.go index dbe87b7cab..ef49865fcf 100644 --- a/outbound/xray.go +++ b/outbound/xray.go @@ -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{