Log if http -> https redirect errors out

This commit is contained in:
Caleb Gardner
2024-08-03 05:32:31 -05:00
parent 88524ce43c
commit 5386899d30
+2 -1
View File
@@ -39,7 +39,8 @@ func main() {
log.Fatal("SPECIFY MONGO AND WEB-ROOT OR I WILL DIE, OH NO, THEY'RE COMING FOR ME.... **DEATH NOISES**")
}
go func() {
http.ListenAndServe(":80", http.RedirectHandler("https://darkstorm.tech", http.StatusPermanentRedirect))
log.Println("error redirecting http traffice:",
http.ListenAndServe(":80", http.RedirectHandler("https://darkstorm.tech", http.StatusPermanentRedirect)))
}()
mux := http.NewServeMux()
setupMongo(*mongoURL)