only attempt discv5 listener when no-discovery is not present (#3293)

This commit is contained in:
Preston Van Loon 2019-08-23 17:59:59 -04:00 committed by GitHub
parent 0353cc533e
commit b04bfb87a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ func (s *Service) Start() {
return
}
s.host = h
if s.cfg.BootstrapNodeAddr != "" {
if s.cfg.BootstrapNodeAddr != "" && !s.cfg.NoDiscovery {
listener, err := startDiscoveryV5(ipAddr, privKey, s.cfg)
if err != nil {
log.WithError(err).Error("Failed to start discovery")