From 65f602e679293eb315d327720c40446eada74dfd Mon Sep 17 00:00:00 2001 From: Alex Yu Date: Thu, 28 Mar 2019 12:18:25 +0300 Subject: [PATCH] Changes: 1. pkg/transport/manager.go: CreateTransport uses both local and remote pks for uuid of transport --- pkg/transport/manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/transport/manager.go b/pkg/transport/manager.go index 5341515319..93ecf38bee 100644 --- a/pkg/transport/manager.go +++ b/pkg/transport/manager.go @@ -198,7 +198,7 @@ func (tm *Manager) Serve(ctx context.Context) error { // CreateTransport begins to attempt to establish transports to the given 'remote' node. func (tm *Manager) CreateTransport(ctx context.Context, remote cipher.PubKey, tpType string, public bool) (*ManagedTransport, error) { - uid := uuid.NewSHA1(uuid.UUID{}, []byte(remote.Hex())) + uid := uuid.NewSHA1(uuid.UUID{}, append(tm.config.PubKey[:], remote[:]...)) return tm.createTransport(ctx, remote, tpType, uid, public) }