Skip to content

Commit

Permalink
Don't Load Crawl Config when it isn't set
Browse files Browse the repository at this point in the history
  • Loading branch information
s-rah committed Oct 10, 2016
1 parent f0067b8 commit 7e66544
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/onionscan_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ func Configure(torProxyAddress string, directoryDepth int, fingerprint bool, tim
return nil
}

filepath.Walk(crawlconfigdir, visit)
if crawlconfigdir != "" {
filepath.Walk(crawlconfigdir, visit)
}

return osc
}
Expand Down

0 comments on commit 7e66544

Please sign in to comment.