diff options
author | 2017-11-28 14:03:20 +0000 | |
---|---|---|
committer | 2017-11-28 14:03:20 +0000 | |
commit | e9699c42b7f81a81f739f8156f2c798cdc8b3823 (patch) | |
tree | 5d0a080d41f79924730a4fbd38c6575583e66b3e /plugin/rewrite/rewrite_test.go | |
parent | 6a02c349eaa87ef6b53826e570f0793caebf7f2f (diff) | |
download | coredns-e9699c42b7f81a81f739f8156f2c798cdc8b3823.tar.gz coredns-e9699c42b7f81a81f739f8156f2c798cdc8b3823.tar.zst coredns-e9699c42b7f81a81f739f8156f2c798cdc8b3823.zip |
plugin/rewrite: don't set or use ecs.DraftOption (#1262)
* plugin/rewrite: don't set or use ecs.DraftOption
Don't know why we are accessing this and explicitally setting it to
False (the default).
Any kill with fire - makes the build, build again.
* remove this
Diffstat (limited to 'plugin/rewrite/rewrite_test.go')
-rw-r--r-- | plugin/rewrite/rewrite_test.go | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/plugin/rewrite/rewrite_test.go b/plugin/rewrite/rewrite_test.go index 33439cefd..44b3f948f 100644 --- a/plugin/rewrite/rewrite_test.go +++ b/plugin/rewrite/rewrite_test.go @@ -364,9 +364,6 @@ func optsEqual(a, b []dns.EDNS0) bool { if !bytes.Equal(aa.Address, bb.Address) { return false } - if aa.DraftOption != bb.DraftOption { - return false - } } else { return false } @@ -479,7 +476,7 @@ func TestRewriteEDNS0Subnet(t *testing.T) { SourceNetmask: 0x18, SourceScope: 0x0, Address: []byte{0x0A, 0xF0, 0x00, 0x00}, - DraftOption: false}}, + }}, }, { &test.ResponseWriter{}, @@ -490,7 +487,7 @@ func TestRewriteEDNS0Subnet(t *testing.T) { SourceNetmask: 0x20, SourceScope: 0x0, Address: []byte{0x0A, 0xF0, 0x00, 0x01}, - DraftOption: false}}, + }}, }, { &test.ResponseWriter{}, @@ -501,7 +498,7 @@ func TestRewriteEDNS0Subnet(t *testing.T) { SourceNetmask: 0x0, SourceScope: 0x0, Address: []byte{0x00, 0x00, 0x00, 0x00}, - DraftOption: false}}, + }}, }, { &test.ResponseWriter6{}, @@ -513,7 +510,7 @@ func TestRewriteEDNS0Subnet(t *testing.T) { SourceScope: 0x0, Address: []byte{0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, - DraftOption: false}}, + }}, }, { &test.ResponseWriter6{}, @@ -525,7 +522,7 @@ func TestRewriteEDNS0Subnet(t *testing.T) { SourceScope: 0x0, Address: []byte{0xfe, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x42, 0x00, 0xff, 0xfe, 0xca, 0x4c, 0x65}, - DraftOption: false}}, + }}, }, { &test.ResponseWriter6{}, @@ -537,7 +534,7 @@ func TestRewriteEDNS0Subnet(t *testing.T) { SourceScope: 0x0, Address: []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, - DraftOption: false}}, + }}, }, } |