Use inherited context
This commit is contained in:
parent
582122851d
commit
9a1438d2e3
1 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ func (h *Headscale) DERPBootstrapDNSHandler(
|
|||
) {
|
||||
dnsEntries := make(map[string][]net.IP)
|
||||
|
||||
resolvCtx, cancel := context.WithTimeout(context.Background(), time.Minute)
|
||||
resolvCtx, cancel := context.WithTimeout(req.Context(), time.Minute)
|
||||
defer cancel()
|
||||
var resolver net.Resolver
|
||||
for _, region := range h.DERPMap.Regions {
|
||||
|
|
Loading…
Add table
Reference in a new issue