aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-11 18:55:09 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-11 18:55:09 -0500
commit42c7bb75295ae7587b7ca36f103a7dc25f87754a (patch)
treecd9cfca7e236853c9cbedb88d7b037244da993b8 /cmd
parent35140f1cc7ed0bd6ae557af76d4c341605348879 (diff)
downloadgitea-42c7bb75295ae7587b7ca36f103a7dc25f87754a.tar.gz
gitea-42c7bb75295ae7587b7ca36f103a7dc25f87754a.zip
mirror code clean
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go3
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)