-
Notifications
You must be signed in to change notification settings - Fork 6
Add ECH support #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Hello, everything LGTM. |
|
Ok, I've changed Also, I'm already hosting an |
|
Can you extract removes into separate loop, otherwise we may be removing previous inserts when records are not sorted by RRsets. Thanks for the offer, but I do not have time / see particular need for them at the moment. |
4256f7a to
90aa254
Compare
Good catch, done.
Also done.
👍 |
|
One last thing I hope) It'll be better to convert records once and reuse them in both calls to remove and insert. |
feff0f1 to
838a721
Compare
Alright, done. Thanks again for the reviews by the way. |
|
Yeah, sorry for bothering you so much, I just wanted this to be implemented to the best of my knowledge, thanks for your contribution. |
Oh, it's really no problem at all. I'm totally new to Go, so I appreciate the feedback.
👍, thanks! |
Caddy recently added ECH support, but the
rfc2136provider doesn't work properly with it. This PR modifies therfc2136module so that setting the ECH records works properly. I've tested these patches on my own server, and everything seems to work as expected now.The two main changes that I had to make were:
Adding support for the upstream
libdnsPriority,Weight, andTargetstruct fields.Changing the semantics of
SetRecordsandAppendRecordsto align with those discussed in Clarify semantics for SetRecords, GetRecords and Close libdns#145.I don't have much Go experience, so please let me know if you want me to make any changes. Thanks!