mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p: allow static dials when discovery is disabled
This commit is contained in:
parent
74208c5d95
commit
53005af04a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue