diff --git a/go.mod b/go.mod index 50cb335..151d4bb 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/2dust/AndroidLibXrayLite go 1.19 require ( - github.com/xtls/xray-core v1.7.2 + github.com/xtls/xray-core v1.8.1 golang.org/x/mobile v0.0.0-20221020085226-b36e6246172e golang.org/x/sys v0.1.0 ) diff --git a/libv2ray_support.go b/libv2ray_support.go index 44672e0..4f77a49 100644 --- a/libv2ray_support.go +++ b/libv2ray_support.go @@ -240,9 +240,9 @@ func (d *ProtectedDialer) Dial(ctx context.Context, } } - if time.Since(d.vServer.lastResolved) > time.Minute*30 { - go d.PrepareDomain(Address, nil, d.preferIPv6) - } + // if time.Since(d.vServer.lastResolved) > time.Minute*30 { + // go d.PrepareDomain(Address, nil, d.preferIPv6) + // } fd, err := d.getFd(dest.Network) if err != nil {