git.iko.soy/typeable/oauth2-proxy
on master help sign in
Merge pull request #1133 from oauth2-proxy/fix-metrics-server

Metrics server should be constructed with secure bind address for TLS

commit5497310673a4527487cf8850fbfda53b442bace9 authorJoel Speed <Joel.speed@hotmail.co.uk> dateFri 26 Mar 2021, 14:36 (6 years ago) parentd64d71717009d8
2 files changed+3−1
CHANGELOG.md+2 oauthproxy.go+1−1
CHANGELOG.md+2
@@ -8,6 +8,8 @@
88
99## Changes since v7.1.0
1010
11+- [#1133](https://github.com/oauth2-proxy/oauth2-proxy/pull/1133) Metrics server should be constructed with secure bind address for TLS (@JoelSpeed)
12+
1113# V7.1.0
1214
1315## Release Highlights
oauthproxy.go+1−1
@@ -274,7 +274,7 @@ func (p *OAuthProxy) setupServer(opts *options.Options) error {
274274 metricsServer, err := proxyhttp.NewServer(proxyhttp.Opts{
275275 Handler: middleware.DefaultMetricsHandler,
276276 BindAddress: opts.MetricsServer.BindAddress,
277− SecureBindAddress: opts.MetricsServer.BindAddress,
277+ SecureBindAddress: opts.MetricsServer.SecureBindAddress,
278278 TLS: opts.MetricsServer.TLS,
279279 })
280280 if err != nil {