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, }), }, },