From 6d893528b4600c033a96e7db5ecb2189d6bd4b69 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Fri, 2 Dec 2016 13:24:57 -0800 Subject: casting var to strings for printing in shell --- system/tls/enable.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/tls/enable.go') diff --git a/system/tls/enable.go b/system/tls/enable.go index c53fac6..4ade194 100644 --- a/system/tls/enable.go +++ b/system/tls/enable.go @@ -42,7 +42,7 @@ func setup() { if host == nil { log.Fatalln("No 'domain' field set in Configuration. Please add a domain before attempting to make certificates.") } - fmt.Println("Using", host, "as host/domain for certificate...") + fmt.Println("Using", string(host), "as host/domain for certificate...") fmt.Println("NOTE: if the host/domain is not configured properly or is unreachable, HTTPS set-up will fail.") email, err := db.Config("admin_email") @@ -53,7 +53,7 @@ func setup() { if email == nil { log.Fatalln("No 'admin_email' field set in Configuration. Please add an admin email before attempting to make certificates.") } - fmt.Println("Using", email, "as contact email for certificate...") + fmt.Println("Using", string(email), "as contact email for certificate...") m = autocert.Manager{ Prompt: autocert.AcceptTOS, -- cgit v1.2.3