Merge pull request #2034 from karalabe/always-allow-dyndials

p2p: always allow dynamic dials if network not disabled
This commit is contained in:
Jeffrey Wilcke 2015-12-07 11:26:05 +01:00
commit 2a3322ea14
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ func (srv *Server) Start() (err error) {
srv.ntab = ntab
}
dynPeers := srv.MaxPeers / 2
dynPeers := (srv.MaxPeers + 1) / 2
if !srv.Discovery {
dynPeers = 0
}