summaryrefslogtreecommitdiff
path: root/system/tls/enable.go
diff options
context:
space:
mode:
authorSteve <nilslice@gmail.com>2016-12-28 16:23:44 -0800
committerGitHub <noreply@github.com>2016-12-28 16:23:44 -0800
commit806fdbe1e8839feb1bcc4e5e07aa7c144a429901 (patch)
treedacaed91abb57bc6891c1b2cb58a82fc0c9610fc /system/tls/enable.go
parent1f7a5b46b906da00ceccb03e7ff26627bb29a3dd (diff)
parent5c340ca57e876a556a5b57e5a7dd32b0ae288440 (diff)
Merge pull request #26 from ponzu-cms/ponzu-dev
[tooling] Add Go command flag, auto-generate self-signed SSL for development
Diffstat (limited to 'system/tls/enable.go')
-rw-r--r--system/tls/enable.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/tls/enable.go b/system/tls/enable.go
index 04f032a..c6f65b3 100644
--- a/system/tls/enable.go
+++ b/system/tls/enable.go
@@ -65,7 +65,8 @@ func setup() {
}
-// Enable runs the setup for creating or locating certificates and starts the TLS server
+// Enable runs the setup for creating or locating production certificates and
+// starts the TLS server
func Enable() {
setup()
@@ -74,6 +75,5 @@ func Enable() {
TLSConfig: &tls.Config{GetCertificate: m.GetCertificate},
}
- go log.Fatalln(server.ListenAndServeTLS("", ""))
- fmt.Println("Server listening for HTTPS requests...")
+ log.Fatalln(server.ListenAndServeTLS("", ""))
}