Change from stating which peer we expect to be on the end of a connection to accepting any known peer

This commit is contained in:
Bryan Boreham committed 2014-09-08 14:07:42 +01:00
1 parent 0a94388f0a
commit 8b3e97b96a
4 files changed
+21 -21

No files matched your search

+1 -1
View File
@@ -154,7 +154,7 @@ func (router *Router) acceptTCP(tcpConn *net.TCPConn) {
// on Port and we wait for them to send us something on UDP to
// start.
connRemote := NewRemoteConnection(router.Ourself, nil, tcpConn.RemoteAddr().String())
NewLocalConnection(connRemote, UnknownPeerName, tcpConn, nil, router)
NewLocalConnection(connRemote, true, tcpConn, nil, router)
}
func (router *Router) listenUDP(localPort int, po PacketSink) *net.UDPConn {