Fix resolving CNAME with no proxy (#564)

This fixes a crash when we resolve (or try to) an external CNAME
when no proxy is set.

Add test as well.
This commit is contained in:
Miek Gieben 2017-03-02 19:35:44 +00:00 committed by GitHub
parent a3f7788686
commit 6966bce653
11 changed files with 67 additions and 9 deletions

View file

@ -16,7 +16,7 @@ func TestReverseFallthrough(t *testing.T) {
t.Parallel()
name, rm, err := test.TempFile(".", exampleOrg)
if err != nil {
t.Fatalf("failed to created zone: %s", err)
t.Fatalf("failed to create zone: %s", err)
}
defer rm()