Skip to content

Commit 4aaa204

Browse files
PeterDaveHelloignoramous
authored andcommitted
Set DoH user agent to empty string for privacy
1 parent dd39240 commit 4aaa204

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

intra/doh/doh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func (t *transport) sendRequest(id uint16, q []byte) (response []byte, hostname
354354
const mimetype = "application/dns-message"
355355
req.Header.Set("Content-Type", mimetype)
356356
req.Header.Set("Accept", mimetype)
357-
req.Header.Set("User-Agent", "Intra")
357+
req.Header.Set("User-Agent", "")
358358

359359
log.Debugf("%d Sending query", id)
360360
httpResponse, err := t.client.Do(req)

0 commit comments

Comments
 (0)