Commit 7ed44cb6 authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

core: add Zone in request.Request (#857)

Add a Zone field in request.Request and a dnsutil.Trimzone help
function.
parent fbf135d2
...@@ -16,6 +16,9 @@ type Request struct { ...@@ -16,6 +16,9 @@ type Request struct {
Req *dns.Msg Req *dns.Msg
W dns.ResponseWriter W dns.ResponseWriter
// Optional lowercased zone of this query.
Zone string
// Cache size after first call to Size or Do. // Cache size after first call to Size or Do.
size int size int
do int // 0: not, 1: true: 2: false do int // 0: not, 1: true: 2: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment