1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-01-26 05:27:28 +02:00

Metrics server should be constructed with secure bind address for TLS

This commit is contained in:
Joel Speed 2021-03-26 09:55:20 +00:00
parent d64d717e63
commit 17009d8363
No known key found for this signature in database
GPG Key ID: 6E80578D6751DEFB
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@
## Changes since v7.1.0 ## Changes since v7.1.0
- [#1133](https://github.com/oauth2-proxy/oauth2-proxy/pull/1133) Metrics server should be constructed with secure bind address for TLS (@JoelSpeed)
# V7.1.0 # V7.1.0
## Release Highlights ## Release Highlights

View File

@ -274,7 +274,7 @@ func (p *OAuthProxy) setupServer(opts *options.Options) error {
metricsServer, err := proxyhttp.NewServer(proxyhttp.Opts{ metricsServer, err := proxyhttp.NewServer(proxyhttp.Opts{
Handler: middleware.DefaultMetricsHandler, Handler: middleware.DefaultMetricsHandler,
BindAddress: opts.MetricsServer.BindAddress, BindAddress: opts.MetricsServer.BindAddress,
SecureBindAddress: opts.MetricsServer.BindAddress, SecureBindAddress: opts.MetricsServer.SecureBindAddress,
TLS: opts.MetricsServer.TLS, TLS: opts.MetricsServer.TLS,
}) })
if err != nil { if err != nil {