p2p: allow static dials when discovery is disabled

This commit is contained in:
Felix Lange 2020-01-24 21:35:55 +01:00
parent 74208c5d95
commit 53005af04a

View file

@ -619,7 +619,7 @@ func (srv *Server) maxInboundConns() int {
} }
func (srv *Server) maxDialedConns() int { func (srv *Server) maxDialedConns() int {
if srv.NoDiscovery || srv.NoDial { if srv.NoDial {
return 0 return 0
} }
r := srv.DialRatio r := srv.DialRatio