Storing tunnel.Session rather than transport.Client

This commit is contained in:
Asim Aslam 2020-01-16 00:28:58 +00:00
parent 19dbd77402
commit 689ae7cfc7

View File

@ -69,7 +69,7 @@ type network struct {
client client.Client
// tunClient is a map of tunnel channel clients
tunClient map[string]transport.Client
tunClient map[string]tunnel.Session
// peerLinks is a map of links for each peer
peerLinks map[string]tunnel.Link
@ -173,7 +173,7 @@ func newNetwork(opts ...Option) Network {
tunnel: options.Tunnel,
server: server,
client: client,
tunClient: make(map[string]transport.Client),
tunClient: make(map[string]tunnel.Session),
peerLinks: make(map[string]tunnel.Link),
discovered: make(chan bool, 1),
solicited: make(chan *node, 32),