diff options
author | 2016-04-13 23:23:35 +0100 | |
---|---|---|
committer | 2016-04-13 23:23:35 +0100 | |
commit | 8184328dbade8834720c61ecf466b722eac46bb7 (patch) | |
tree | a0110ae14e7b6946dce0cec80327bf59fa787a95 /core/caddy.go | |
parent | da447e28f494c47c5212f0e045ba8c3c065f45fb (diff) | |
download | coredns-8184328dbade8834720c61ecf466b722eac46bb7.tar.gz coredns-8184328dbade8834720c61ecf466b722eac46bb7.tar.zst coredns-8184328dbade8834720c61ecf466b722eac46bb7.zip |
Use IsDomainName (#119)
Liberal as it as it still has its use. Reject invalid domain names
in the config.
Unrelated: clear up the README as well. And fix travis script.
Diffstat (limited to 'core/caddy.go')
-rw-r--r-- | core/caddy.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/caddy.go b/core/caddy.go index df84e679a..5b336a77e 100644 --- a/core/caddy.go +++ b/core/caddy.go @@ -390,8 +390,8 @@ type Input interface { } // TestServer returns a test server. -// The port can be retreived with ... . The testserver itself can be stopped -// with Stop(). It just takes a normal Corefile input, but doesn't use the port. +// The ports can be retreived with server.LocalAddr(). The testserver itself can be stopped +// with Stop(). It just takes a normal Corefile as input. func TestServer(t *testing.T, corefile string) (*server.Server, error) { cdyfile := CaddyfileInput{Contents: []byte(corefile)} |