|
@@ -223,7 +223,7 @@ func (s *DoHNameServer) sendQuery(ctx context.Context, domain string, clientIP n
|
|
|
go func(r *dnsRequest) {
|
|
go func(r *dnsRequest) {
|
|
|
// generate new context for each req, using same context
|
|
// generate new context for each req, using same context
|
|
|
// may cause reqs all aborted if any one encounter an error
|
|
// may cause reqs all aborted if any one encounter an error
|
|
|
- dnsCtx := context.Background()
|
|
|
|
|
|
|
+ dnsCtx := ctx
|
|
|
|
|
|
|
|
// reserve internal dns server requested Inbound
|
|
// reserve internal dns server requested Inbound
|
|
|
if inbound := session.InboundFromContext(ctx); inbound != nil {
|
|
if inbound := session.InboundFromContext(ctx); inbound != nil {
|