aboutsummaryrefslogtreecommitdiff
path: root/core/config.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2016-03-19 14:46:32 +0000
committerGravatar Miek Gieben <miek@miek.nl> 2016-03-19 14:46:32 +0000
commitd933bb26668583bf49d9ae87752fdb139a57e21c (patch)
tree19dbc41bab6d4d7d7e8da2d361f27085febe3b13 /core/config.go
parent01d5804c1339a62112cb27d5f2238acb7154a734 (diff)
downloadcoredns-d933bb26668583bf49d9ae87752fdb139a57e21c.tar.gz
coredns-d933bb26668583bf49d9ae87752fdb139a57e21c.tar.zst
coredns-d933bb26668583bf49d9ae87752fdb139a57e21c.zip
Make whole heap of tests better
Diffstat (limited to 'core/config.go')
-rw-r--r--core/config.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/core/config.go b/core/config.go
index 8c376d878..5cdaacee6 100644
--- a/core/config.go
+++ b/core/config.go
@@ -8,7 +8,6 @@ import (
"net"
"sync"
- "github.com/miekg/coredns/core/https"
"github.com/miekg/coredns/core/parse"
"github.com/miekg/coredns/core/setup"
"github.com/miekg/coredns/server"
@@ -307,14 +306,9 @@ func validDirective(d string) bool {
// DefaultInput returns the default Caddyfile input
// to use when it is otherwise empty or missing.
-// It uses the default host and port (depends on
-// host, e.g. localhost is 2015, otherwise 443) and
-// root.
+// It uses the default host and port and root.
func DefaultInput() CaddyfileInput {
port := Port
- if https.HostQualifies(Host) && port == DefaultPort {
- port = "443"
- }
return CaddyfileInput{
Contents: []byte(fmt.Sprintf("%s:%s\nroot %s", Host, port, Root)),
}