From 6f12667e8ce4272fa77bc91bea425b6ea37142dc Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Fri, 5 Apr 2024 17:59:25 +0700 Subject: [PATCH] Only set OS header value for query from router itself So queries from clients won't be mis-recognized as query from router in case of client metadata is in progress of collecting. --- doh.go | 1 - 1 file changed, 1 deletion(-) diff --git a/doh.go b/doh.go index 870d5bd..bddc583 100644 --- a/doh.go +++ b/doh.go @@ -165,7 +165,6 @@ func addHeader(ctx context.Context, req *http.Request, uc *UpstreamConfig) { // newControlDHeaders returns DoH/Doh3 HTTP request headers for ControlD upstream. func newControlDHeaders(ci *ClientInfo) http.Header { header := make(http.Header) - header.Set(dohOsHeader, dohOsHeaderValue) if ci.Mac != "" { header.Set(dohMacHeader, ci.Mac) }