From cfa51f66a66958c13fe05f0852789d20e78a3e0f Mon Sep 17 00:00:00 2001
From: Ethan Buchman <ethan@coinculture.info>
Date: Wed, 24 Feb 2016 14:29:22 +0000
Subject: [PATCH] disaple max ips per range

---
 .../src/github.com/tendermint/tendermint/p2p/peer_set.go     | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Godeps/_workspace/src/github.com/tendermint/tendermint/p2p/peer_set.go b/Godeps/_workspace/src/github.com/tendermint/tendermint/p2p/peer_set.go
index 8a5f8e6d..5a2c4498 100644
--- a/Godeps/_workspace/src/github.com/tendermint/tendermint/p2p/peer_set.go
+++ b/Godeps/_workspace/src/github.com/tendermint/tendermint/p2p/peer_set.go
@@ -17,7 +17,7 @@ type IPeerSet interface {
 //-----------------------------------------------------------------------------
 
 var (
-	maxPeersPerIPRange = [4]int{11, 7, 5, 3} // ...
+	maxPeersPerIPRange = [4]int{11, 7, 5, 3} // XXX: Make this configurable!
 )
 
 // PeerSet is a special structure for keeping a table of peers.
@@ -152,6 +152,9 @@ func NewNestedCounter() *nestedCounter {
 func (ps *PeerSet) HasMaxForIPRange(conn net.Conn) (ok bool) {
 	ps.mtx.Lock()
 	defer ps.mtx.Unlock()
+
+	return false // NEVER ENOUGH IPs muahahaha
+
 	ip, _, _ := net.SplitHostPort(conn.RemoteAddr().String())
 	ipBytes := strings.Split(ip, ".")
 
-- 
GitLab