diff options
Diffstat (limited to 'plugin/normalize.go')
-rw-r--r-- | plugin/normalize.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugin/normalize.go b/plugin/normalize.go index ef6f2eaa0..fbbe5c826 100644 --- a/plugin/normalize.go +++ b/plugin/normalize.go @@ -71,6 +71,8 @@ func (h Host) Normalize() string { s = s[len(TransportDNS+"://"):] case strings.HasPrefix(s, TransportGRPC+"://"): s = s[len(TransportGRPC+"://"):] + case strings.HasPrefix(s, TransportHTTPS+"://"): + s = s[len(TransportHTTPS+"://"):] } // The error can be ignore here, because this function is called after the corefile @@ -138,7 +140,8 @@ func SplitHostPort(s string) (host, port string, ipnet *net.IPNet, err error) { // Duplicated from core/dnsserver/address.go ! const ( - TransportDNS = "dns" - TransportTLS = "tls" - TransportGRPC = "grpc" + TransportDNS = "dns" + TransportTLS = "tls" + TransportGRPC = "grpc" + TransportHTTPS = "https" ) |