这是indexloc提供的服务,不要输入任何密码
Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"regexp"
"strconv"
"strings"
"time"

"github.com/projectdiscovery/gologger"
contextutil "github.com/projectdiscovery/utils/context"
Expand Down Expand Up @@ -80,6 +81,9 @@ func (r *Runner) RunEnumeration() error {

// RunEnumerationWithCtx runs the subdomain enumeration flow on the targets specified
func (r *Runner) RunEnumerationWithCtx(ctx context.Context) error {
timeout := time.Duration(r.options.Timeout) * time.Second
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is the intended functionality, as the timeout setting like in other tools is applied to each individual request

ctx, cancel := context.WithTimeout(ctx, timeout)
defer cancel()
outputs := []io.Writer{r.options.Output}

if len(r.options.Domain) > 0 {
Expand Down
Loading