LocalPeer shouldn't have to know about remote UDP address

...and LocalConnection shouldn't have to remember it
This commit is contained in:
Matthias Radestock committed 2015-11-05 19:32:49 +00:00
1 parent ad15e5a234
commit e7ff6a2191
3 files changed
+23 -24

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 {