fix: EDNS cookies work properly #98

Merged
sam merged 3 commits from fix-edns-cookies into master 2022-09-16 23:26:10 +00:00
Owner

also slight refactors :)

closes #96

also slight refactors :) closes #96
sam added 1 commit 2022-09-16 12:13:40 +00:00
continuous-integration/drone/push Build is failing Details
continuous-integration/drone/pr Build is failing Details
33cb3e4572
fix: EDNS cookies work properly
Signed-off-by: Sam Therapy <sam@samtherapy.net>
sam added 1 commit 2022-09-16 22:50:23 +00:00
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
80522df153
fix dumb mistake
Signed-off-by: Sam Therapy <sam@samtherapy.net>
sam added a new dependency 2022-09-16 22:51:46 +00:00
sam removed a dependency 2022-09-16 22:55:37 +00:00
grumbulon requested changes 2022-09-16 22:59:03 +00:00
query/query.go Outdated
@ -44,7 +44,7 @@ func CreateQuery(opts util.Options) (util.Response, error) {
if opts.EDNS.Cookie {
e := new(dns.EDNS0_COOKIE)
Collaborator

Change e to edns -- single letter variables are good for examples but not for production.

	edns := new(dns.EDNS0_COOKIE)
	edns.Code = dns.EDNS0COOKIE
	edns.Cookie = uniuri.NewLenChars(16, []byte("1234567890abcdef"))
Change e to `edns` -- single letter variables are good for examples but not for production. ```Go edns := new(dns.EDNS0_COOKIE) edns.Code = dns.EDNS0COOKIE edns.Cookie = uniuri.NewLenChars(16, []byte("1234567890abcdef")) ```
sam marked this conversation as resolved
sam added 1 commit 2022-09-16 23:17:21 +00:00
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details
f6bb2c85cd
Apply suggested change :)
Signed-off-by: Sam Therapy <sam@samtherapy.net>
sam requested review from grumbulon 2022-09-16 23:17:28 +00:00
grumbulon approved these changes 2022-09-16 23:21:19 +00:00
grumbulon left a comment
Collaborator

lgtm :)

lgtm :)
sam merged commit 8df0347891 into master 2022-09-16 23:26:10 +00:00
sam deleted branch fix-edns-cookies 2022-09-16 23:26:11 +00:00
Sign in to join this conversation.
No description provided.