diff options
Diffstat (limited to 'brokenlinks/link_queue.go')
| -rw-r--r-- | brokenlinks/link_queue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/brokenlinks/link_queue.go b/brokenlinks/link_queue.go index 164a902..6a7dd32 100644 --- a/brokenlinks/link_queue.go +++ b/brokenlinks/link_queue.go @@ -37,14 +37,14 @@ type linkQueue struct { // checkExternal set the isExternal field to be true if // -// (1) [linkQueue.url] does not start with [worker.scanUrl] +// (1) [linkQueue.url] does not start with [Options.Url] // // (2) linkQueue is from scanPastResult, indicated by non-nil // [worker.pastResult]. // In this case, we did not want to scan the other pages from the same scanUrl // domain. func (linkq *linkQueue) checkExternal(wrk *worker) { - if !strings.HasPrefix(linkq.url, wrk.scanUrl.String()) { + if !strings.HasPrefix(linkq.url, wrk.opts.scanUrl.String()) { linkq.isExternal = true return } |
