internal/config: change internal-authenticate-addr to url (#154)

This commit is contained in:
Bobby DeSimone 2019-05-31 17:53:58 -07:00 committed by GitHub
parent 1791e3d3f7
commit 77f3933560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 127 additions and 48 deletions

View file

@ -161,7 +161,7 @@ func New(opts *config.Options) (*Proxy, error) {
p.AuthenticateClient, err = clients.NewAuthenticateClient("grpc",
&clients.Options{
Addr: opts.AuthenticateURL.Host,
InternalAddr: opts.AuthenticateInternalAddr,
InternalAddr: opts.AuthenticateInternalAddr.String(),
OverrideCertificateName: opts.OverrideCertificateName,
SharedSecret: opts.SharedKey,
CA: opts.CA,