diff options
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/crawl/crawl.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/crawl/crawl.go b/cmd/crawl/crawl.go index 63fda1a..8f84837 100644 --- a/cmd/crawl/crawl.go +++ b/cmd/crawl/crawl.go @@ -348,14 +348,14 @@ func main() { log.Fatal(err) } - httpClient = crawl.NewHTTPClientWithDNSOverride(dnsMap) - if *bindIP != "" { addr, err := net.ResolveIPAddr("ip", *bindIP) if err != nil { log.Fatal(err) } - httpClient = crawl.NewHTTPClientWithLocalAddrOverride(addr) + httpClient = crawl.NewHTTPClientWithOverrides(dnsMap, addr) + } else { + httpClient = crawl.NewHTTPClientWithOverrides(dnsMap, nil) } crawler, err := crawl.NewCrawler( |