From 6690441240f217cc5e6de93fa0803e3c15a50fef Mon Sep 17 00:00:00 2001 From: Simon Zolin Date: Tue, 7 Apr 2020 19:24:29 +0300 Subject: [PATCH] - install: fix crash when trying to use uninitialized TLS module --- home/home.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/home.go b/home/home.go index 8689d4ea..63bb308e 100644 --- a/home/home.go +++ b/home/home.go @@ -566,7 +566,9 @@ func printHTTPAddresses(proto string) { var address string tlsConf := tlsConfigSettings{} - Context.tls.WriteDiskConfig(&tlsConf) + if Context.tls != nil { + Context.tls.WriteDiskConfig(&tlsConf) + } if proto == "https" && tlsConf.ServerName != "" { if tlsConf.PortHTTPS == 443 { log.Printf("Go to https://%s", tlsConf.ServerName)