Merge pull request #1643 from weaveworks/refactor-forwarder-remote-address

Refactor: remove knowledge of overlay connectivity details from Local{Peer,Connection}
This commit is contained in:
Adam Harrison committed 2015-11-06 16:02:10 +00:00
commit 3e99b71e0f
7 files changed
+48 -40

No files matched your search

+1 -1
View File
@@ -171,7 +171,7 @@ func (router *Router) acceptTCP(tcpConn *net.TCPConn) {
remoteAddrStr := tcpConn.RemoteAddr().String()
log.Printf("->[%s] connection accepted", remoteAddrStr)
connRemote := NewRemoteConnection(router.Ourself.Peer, nil, remoteAddrStr, false, false)
StartLocalConnection(connRemote, tcpConn, nil, router, true)
StartLocalConnection(connRemote, tcpConn, router, true)
}
func (router *Router) handleForwardedPacket(key ForwardPacketKey) FlowOp {