Pass endpoint to the client (#811)

This allows us to automatically set TLS parameters, useful for `boundary
connect http` and some other features to come.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-12-09 14:45:53 -05:00
1 parent 71ed04db9b
commit d4a6efb363
9 files changed
+101 -46

No files matched your search

@@ -416,6 +416,7 @@ HostSetIterationLoop:
Certificate: sess.Certificate,
PrivateKey: privKey,
HostId: chosenId.hostId,
Endpoint: endpointUrl.String(),
WorkerInfo: workers,
ConnectionLimit: t.GetSessionConnectionLimit(),
}
@@ -435,6 +436,7 @@ HostSetIterationLoop:
UserId: authResults.UserId,
HostId: chosenId.hostId,
HostSetId: chosenId.hostSetId,
Endpoint: endpointUrl.String(),
}
return &pbs.AuthorizeSessionResponse{Item: ret}, nil
}