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
fix: EDNS cookies work properly
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing
33cb3e4572
Signed-off-by: Sam Therapy <sam@samtherapy.net>
sam added 1 commit 2022-09-16 22:50:23 +00:00
fix dumb mistake
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
80522df153
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
Apply suggested change :)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
f6bb2c85cd
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
sam referenced this pull request from a commit 2022-09-16 23:26:11 +00:00
Sign in to join this conversation.
No description provided.