diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-12-11 18:55:09 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-12-11 18:55:09 -0500 |
commit | 42c7bb75295ae7587b7ca36f103a7dc25f87754a (patch) | |
tree | cd9cfca7e236853c9cbedb88d7b037244da993b8 /cmd | |
parent | 35140f1cc7ed0bd6ae557af76d4c341605348879 (diff) | |
download | gitea-42c7bb75295ae7587b7ca36f103a7dc25f87754a.tar.gz gitea-42c7bb75295ae7587b7ca36f103a7dc25f87754a.zip |
mirror code clean
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/web.go b/cmd/web.go index 30a2cd991d..6f1319a4e5 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -454,8 +454,7 @@ func runWeb(*cli.Context) { case setting.HTTP: err = http.ListenAndServe(listenAddr, m) case setting.HTTPS: - cfg := &tls.Config{MinVersion: tls.VersionTLS10} - server := &http.Server{Addr: listenAddr, TLSConfig: cfg, Handler: m} + server := &http.Server{Addr: listenAddr, TLSConfig: &tls.Config{MinVersion: tls.VersionTLS10}, Handler: m} err = server.ListenAndServeTLS(setting.CertFile, setting.KeyFile) case setting.FCGI: err = fcgi.Serve(nil, m) |