mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 02:33:14 -04:00
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.
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user