Add/strip padding according to RFC7830 and RFC8467

This commit is contained in:
folbrich
2019-07-20 16:02:00 -06:00
parent 625ce7fa22
commit 5cb1c0b0e2
9 changed files with 242 additions and 5 deletions
+3
View File
@@ -41,6 +41,9 @@ func (d *DoTClient) Resolve(q *dns.Msg, ci ClientInfo) (*dns.Msg, error) {
"resolver": d.endpoint,
"protocol": "dot",
}).Debug("querying upstream resolver")
// Add padding to the query before sending over TLS
padQuery(q)
return d.pipeline.Resolve(q)
}