Skip bootstrapping if no peers specified
This commit is contained in:
parent
858994a630
commit
835b84b12a
@ -17,10 +17,14 @@ func BuiltinBootstrap() ([]peer.AddrInfo, error) {
|
|||||||
|
|
||||||
b := rice.MustFindBox("bootstrap")
|
b := rice.MustFindBox("bootstrap")
|
||||||
|
|
||||||
spi := b.MustString(BootstrappersFile)
|
if BootstrappersFile != "" {
|
||||||
if spi == "" {
|
spi := b.MustString(BootstrappersFile)
|
||||||
return nil, nil
|
if spi == "" {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
return addrutil.ParseAddresses(context.TODO(), strings.Split(strings.TrimSpace(spi), "\n"))
|
||||||
}
|
}
|
||||||
|
|
||||||
return addrutil.ParseAddresses(context.TODO(), strings.Split(strings.TrimSpace(spi), "\n"))
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user