From 1d0097a3aa0d531f7c248aff6cc078024fada283 Mon Sep 17 00:00:00 2001 From: Fluf <36822577+flufmonster@users.noreply.github.com> Date: Sun, 10 Jun 2018 19:28:42 -0400 Subject: [PATCH] Update to using named port Clarified comment --- cmd/web.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/web.go b/cmd/web.go index 69f9b9430..e87bf01bf 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -80,8 +80,7 @@ func runLetsEncrypt(listenAddr, domain, directory, email string, m http.Handler) Cache: autocert.DirCache(directory), Email: email, } - go http.ListenAndServe(":80", certManager.HTTPHandler(nil)) // all traffic coming into HTTP will be redirect to HTTPS automatically - // required for letsencrypt validation + go http.ListenAndServe(":http", certManager.HTTPHandler(nil)) // all traffic coming into HTTP will be redirect to HTTPS automatically (LE HTTP-01 validatio happens here) server := &http.Server{ Addr: listenAddr, Handler: m,