From 96b701aaa084eaa1386fca46e6a9324533b9847d Mon Sep 17 00:00:00 2001 From: patterniha <71074308+patterniha@users.noreply.github.com> Date: Mon, 18 Aug 2025 01:07:01 +0330 Subject: [PATCH] update tests --- infra/conf/freedom_test.go | 3 ++- testing/scenarios/dns_test.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/infra/conf/freedom_test.go b/infra/conf/freedom_test.go index 3d9d142a..55a83243 100644 --- a/infra/conf/freedom_test.go +++ b/infra/conf/freedom_test.go @@ -7,6 +7,7 @@ import ( "github.com/xtls/xray-core/common/protocol" . "github.com/xtls/xray-core/infra/conf" "github.com/xtls/xray-core/proxy/freedom" + "github.com/xtls/xray-core/transport/internet" ) func TestFreedomConfig(t *testing.T) { @@ -23,7 +24,7 @@ func TestFreedomConfig(t *testing.T) { }`, Parser: loadJSON(creator), Output: &freedom.Config{ - DomainStrategy: freedom.Config_AS_IS, + DomainStrategy: internet.DomainStrategy_AS_IS, DestinationOverride: &freedom.DestinationOverride{ Server: &protocol.ServerEndpoint{ Address: &net.IPOrDomain{ diff --git a/testing/scenarios/dns_test.go b/testing/scenarios/dns_test.go index 1c6d8277..4de2fe7e 100644 --- a/testing/scenarios/dns_test.go +++ b/testing/scenarios/dns_test.go @@ -16,6 +16,7 @@ import ( "github.com/xtls/xray-core/proxy/freedom" "github.com/xtls/xray-core/proxy/socks" "github.com/xtls/xray-core/testing/servers/tcp" + "github.com/xtls/xray-core/transport/internet" xproxy "golang.org/x/net/proxy" ) @@ -83,7 +84,7 @@ func TestResolveIP(t *testing.T) { { Tag: "direct", ProxySettings: serial.ToTypedMessage(&freedom.Config{ - DomainStrategy: freedom.Config_USE_IP, + DomainStrategy: internet.DomainStrategy_USE_IP, }), }, },