diff --git a/cmd/ctrld/dns_proxy.go b/cmd/ctrld/dns_proxy.go index ec2ce30..4a1685d 100644 --- a/cmd/ctrld/dns_proxy.go +++ b/cmd/ctrld/dns_proxy.go @@ -237,6 +237,7 @@ func (p *prog) proxy(ctx context.Context, upstreams []string, failoverRcodes []i if upstreamConfig.UpstreamSendClientInfo() { ci := router.GetClientInfoByMac(macFromMsg(msg)) if ci != nil { + ctrld.Log(ctx, mainLog.Debug(), "including client info with the request") ctx = context.WithValue(ctx, ctrld.ClientInfoCtxKey{}, ci) } } diff --git a/doh.go b/doh.go index 931b6a1..242f759 100644 --- a/doh.go +++ b/doh.go @@ -107,4 +107,5 @@ func addHeader(ctx context.Context, req *http.Request, sendClientInfo bool) { } } } + Log(ctx, ProxyLog.Debug().Interface("header", req.Header), "sending request header") }