Replace auto-HTTPS info message and move a method to proper file

This commit is contained in:
Matthew Holt committed 2016-06-28 23:01:06 -06:00
1 parent d2be213e10
commit 2e84fe4504
3 files changed
+13 -5

No files matched your search

+8
View File
@@ -1,6 +1,7 @@
package httpserver
import (
"fmt"
"net"
"net/http"
@@ -9,6 +10,10 @@ import (
)
func activateHTTPS(cctx caddy.Context) error {
if !caddy.Quiet {
fmt.Print("Activating privacy features...")
}
ctx := cctx.(*httpContext)
// pre-screen each config and earmark the ones that qualify for managed TLS
@@ -39,6 +44,9 @@ func activateHTTPS(cctx caddy.Context) error {
return err
}
if !caddy.Quiet {
fmt.Println(" done.")
}
return nil
}