Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
1. pkg/transport/manager.go: CreateTransport uses both local and remote
pks for uuid of transport
  • Loading branch information
ayuryshev committed Mar 28, 2019
1 parent 5fa0d6e commit 65f602e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/transport/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 65f602e

Please sign in to comment.