Skip to content

Commit

Permalink
Unsure
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuryshev committed Mar 28, 2019
1 parent 5d5f0d7 commit 989dcf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/transport/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ 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) {
return tm.createTransport(ctx, remote, tpType, uuid.UUID{}, public)
uid := uuid.NewSHA1(uuid.UUID{}, []byte(remote.Hex()))
return tm.createTransport(ctx, remote, tpType, uid, public)
}

// DeleteTransport disconnects and removes the Transport of Transport ID.
Expand Down

0 comments on commit 989dcf4

Please sign in to comment.