diff options
author | Vishal Tak <vtak@gitlab.com> | 2022-06-02 10:20:32 +0300 |
---|---|---|
committer | Vishal Tak <vtak@gitlab.com> | 2022-06-02 10:54:22 +0300 |
commit | 8505271718ca31061a798ab3919dbd8a50055c65 (patch) | |
tree | 8cbc10d460897a9ad6354ff28defb7416607c140 /app.go | |
parent | 2624810f74b8ea239a02d09f5a21def3e1076fda (diff) |
Use IsHTTPS field to check if metrics conn type
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) } |