From e0526c27b3e60a81a21896ec18acae37dcd87747 Mon Sep 17 00:00:00 2001 From: Jim Han <50871214+JimhHan@users.noreply.github.com> Date: Sun, 14 Mar 2021 23:05:08 +0800 Subject: [PATCH] Removal: confonly (#368) --- app/dispatcher/fakednssniffer.go | 4 +--- app/dns/fakedns/fake.go | 4 +--- app/dns/fakedns/fakedns.go | 2 -- app/dns/nameserver_fakedns.go | 4 +--- 4 files changed, 3 insertions(+), 11 deletions(-) diff --git a/app/dispatcher/fakednssniffer.go b/app/dispatcher/fakednssniffer.go index fa34179f..7d26d975 100644 --- a/app/dispatcher/fakednssniffer.go +++ b/app/dispatcher/fakednssniffer.go @@ -1,14 +1,12 @@ -// +build !confonly - package dispatcher import ( "context" - "github.com/xtls/xray-core/core" "github.com/xtls/xray-core/common" "github.com/xtls/xray-core/common/net" "github.com/xtls/xray-core/common/session" + "github.com/xtls/xray-core/core" "github.com/xtls/xray-core/features/dns" ) diff --git a/app/dns/fakedns/fake.go b/app/dns/fakedns/fake.go index 4860b42d..b4a986a5 100644 --- a/app/dns/fakedns/fake.go +++ b/app/dns/fakedns/fake.go @@ -1,5 +1,3 @@ -// +build !confonly - package fakedns import ( @@ -17,7 +15,7 @@ import ( type Holder struct { domainToIP cache.Lru - ipRange *gonet.IPNet + ipRange *gonet.IPNet config *FakeDnsPool } diff --git a/app/dns/fakedns/fakedns.go b/app/dns/fakedns/fakedns.go index ac28414c..710b8a6f 100644 --- a/app/dns/fakedns/fakedns.go +++ b/app/dns/fakedns/fakedns.go @@ -1,5 +1,3 @@ -// +build !confonly - package fakedns //go:generate go run github.com/xtls/xray-core/common/errors/errorgen diff --git a/app/dns/nameserver_fakedns.go b/app/dns/nameserver_fakedns.go index 1d008620..32d8bcd6 100644 --- a/app/dns/nameserver_fakedns.go +++ b/app/dns/nameserver_fakedns.go @@ -1,12 +1,10 @@ -// +build !confonly - package dns import ( "context" - "github.com/xtls/xray-core/core" "github.com/xtls/xray-core/common/net" + "github.com/xtls/xray-core/core" "github.com/xtls/xray-core/features/dns" )