From d75d832a538fd22b1f3f39ec0323485f30b9fa6b Mon Sep 17 00:00:00 2001 From: Douglas Danger Manley Date: Tue, 28 May 2024 14:58:40 -0400 Subject: [PATCH] Fix `ExecuteCallbackWithCtx` to use the context that was provided This updates `ExecuteCallbackWithCtx` to use the context that was provided. --- lib/sdk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sdk.go b/lib/sdk.go index 63925f47ca..9b6566219b 100644 --- a/lib/sdk.go +++ b/lib/sdk.go @@ -240,7 +240,7 @@ func (e *NucleiEngine) ExecuteCallbackWithCtx(ctx context.Context, callback ...f } e.resultCallbacks = append(e.resultCallbacks, filtered...) - _ = e.engine.ExecuteScanWithOpts(context.Background(), e.store.Templates(), e.inputProvider, false) + _ = e.engine.ExecuteScanWithOpts(ctx, e.store.Templates(), e.inputProvider, false) defer e.engine.WorkPool().Wait() return nil }