+ client_proto

This commit is contained in:
Simon Zolin
2020-05-29 11:15:22 +03:00
parent 0adbce5d38
commit 0904eeffa8
6 changed files with 29 additions and 14 deletions

View File

@@ -39,6 +39,11 @@ func processQueryLogsAndStats(ctx *dnsContext) int {
Elapsed: elapsed,
ClientIP: getIP(d.Addr),
}
if d.HTTPRequest != nil {
p.ClientProto = "doh"
}
if d.Upstream != nil {
p.Upstream = d.Upstream.Address()
}