mirror of
https://github.com/folbricht/routedns.git
synced 2026-05-08 00:49:18 -05:00
Add/strip padding according to RFC7830 and RFC8467
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user