From 42c7bb75295ae7587b7ca36f103a7dc25f87754a Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 11 Dec 2014 18:55:09 -0500 Subject: [PATCH] mirror code clean --- cmd/web.go | 3 +-- gogs.go | 2 +- templates/.VERSION | 2 +- 3 files changed, 3 insertions(+), 4 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) diff --git a/gogs.go b/gogs.go index 6085cd71e4..de76ca722b 100644 --- a/gogs.go +++ b/gogs.go @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.5.8.1210 Beta" +const APP_VER = "0.5.8.1211 Beta" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/templates/.VERSION b/templates/.VERSION index e5200d1825..f69ca6c4b0 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.5.8.1210 Beta \ No newline at end of file +0.5.8.1211 Beta \ No newline at end of file