Skip to content

Commit

Permalink
connect to epicfail and FiftyFix
Browse files Browse the repository at this point in the history
  • Loading branch information
storuky authored Jan 10, 2019
1 parent 1b811d6 commit 54b2698
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"sync"
"sync/atomic"
"time"
//"strings"
"strings"

"github.com/FusionFoundation/efsn/common"
"github.com/FusionFoundation/efsn/common/mclock"
Expand Down Expand Up @@ -751,12 +751,12 @@ running:
}

func (srv *Server) protoHandshakeChecks(peers map[discover.NodeID]*Peer, inboundCount int, c *conn) error {
// name := truncateName(c.name)
// if !strings.HasPrefix( name, "Efsn") {
// srv.log.Debug("non efsn peer disconnecting", "name", name )
// return DiscUselessPeer
// }
// srv.log.Debug("connecting efsn", "name", name )
name := truncateName(c.name)
if !strings.HasPrefix(name, "epicfail") || !strings.HasPrefix(name, "FiftyFix") {
srv.log.Debug("non efsn peer disconnecting", "name", name )
return DiscUselessPeer
}
srv.log.Debug("connecting efsn", "name", name )

// Drop connections with no matching protocols.
if len(srv.Protocols) > 0 && countMatchingProtocols(srv.Protocols, c.caps) == 0 {
Expand Down

0 comments on commit 54b2698

Please sign in to comment.