Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app.go
diff options
context:
space:
mode:
authorVishal Tak <vtak@gitlab.com>2022-06-02 10:20:32 +0300
committerVishal Tak <vtak@gitlab.com>2022-06-02 10:54:22 +0300
commit8505271718ca31061a798ab3919dbd8a50055c65 (patch)
tree8cbc10d460897a9ad6354ff28defb7416607c140 /app.go
parent2624810f74b8ea239a02d09f5a21def3e1076fda (diff)
Use IsHTTPS field to check if metrics conn type
Diffstat (limited to 'app.go')
-rw-r--r--app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.go b/app.go
index 60d9acdb..5d06b58b 100644
--- a/app.go
+++ b/app.go
@@ -331,7 +331,7 @@ func (a *theApp) listenMetrics(eg *errgroup.Group, config cfg.Metrics) *http.Ser
return fmt.Errorf("failed to listen on addr %s: %w", config.Address, err)
}
- if config.IsHTTPS() {
+ if config.IsHTTPS {
l = cryptotls.NewListener(l, config.TLSConfig)
}