diff options
| author | demo <demo@antix1> | 2026-05-27 12:18:56 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-27 12:18:56 -0400 |
| commit | a939f6c8ea4e7d493aa282403e1f39a12604484d (patch) | |
| tree | 6f31723ef38280085e6a1da8114cb39b164b1ca3 /classic.go | |
| parent | ebb7f3eb80c86ae110aaaaf73381e677c33699c1 (diff) | |
feat: configure maxDepth from the command line
Similar to maxURLs, a maxDepth of zero means no limit.
Diffstat (limited to 'classic.go')
| -rw-r--r-- | classic.go | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -40,7 +40,13 @@ loop: break loop } - if p.depth == maxDepth { + // Track maxDepth here. A maxDepth + // greater than zero means a finite + // maxDepth value. If the packets + // we're seeing reach that depth, + // don't use their URLs to spawn new + // fetches. + if maxDepth > 0 && p.depth == maxDepth { continue } |
