From 613d8147bb2b3bcfb0600a525c33260a9a2ca5f6 Mon Sep 17 00:00:00 2001 From: Meow <197331664+Meo597@users.noreply.github.com> Date: Thu, 29 Oct 2026 06:49:30 +0800 Subject: [PATCH] Direct/Freedom outbound: Warn about migrating `fragment` and `noises` to Finalmask (#7242) https://github.com/XTLS/Xray-core/issues/7240#issuecomment-6361862358 --- infra/conf/freedom.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/conf/freedom.go b/infra/conf/freedom.go index 1d2020e37..da34d8e3f 100644 --- a/infra/conf/freedom.go +++ b/infra/conf/freedom.go @@ -91,6 +91,7 @@ func (c *FreedomConfig) Build() (proto.Message, error) { } if c.Fragment != nil { + errors.PrintDeprecatedFeatureWarning(`"fragment" in Freedom`, `"fragment" in "streamSettings.finalmask.tcp"`) config.Fragment = new(freedom.Fragment) switch strings.ToLower(c.Fragment.Packets) { @@ -147,6 +148,7 @@ func (c *FreedomConfig) Build() (proto.Message, error) { } if c.Noises != nil { + errors.PrintDeprecatedFeatureWarning(`"noises" in Freedom`, `"noise" in "streamSettings.finalmask.udp"`) for _, n := range c.Noises { NConfig, err := ParseNoise(n) if err != nil {