Skip to content

Commit f86aa6a

Browse files
committed
supply default bootstrap nodes
1 parent 95577b1 commit f86aa6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

main.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ func crawl(configuration *config.Configuration, database *clover.DB, bot *telegr
3636
bootstrapNodes := ReadFileLines(configuration.BootstrapNodeFile)
3737

3838
if len(bootstrapNodes) == 0 {
39-
log.Error().Msg("No bootstrap nodes")
40-
return
39+
log.Warn().Msg("No bootstrap nodes found in '" + configuration.BootstrapNodeFile + "'.")
40+
log.Info().Msg("Using default bootstrap nodes.")
41+
bootstrapNodes = []string{
42+
"router.bittorrent.com:6881", "dht.transmissionbt.com:6881", "dht.libtorrent.org:25401",
43+
}
4144
}
4245

4346
trawlingManager := dhtcclient.NewManager(bootstrapNodes, indexerAddrs, 1, configuration.MaxNeighbors)

0 commit comments

Comments
 (0)