From 890cb4a2c4413a7f50bee8be0a4808440b1a9d51 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 18 Dec 2022 02:41:35 +0100 Subject: [PATCH] Prepare connection via TLS. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 0f44ac9..34be6ce 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,7 @@ func main() { http.HandleFunc("/", server.SocketHandler) - err := http.ListenAndServe("localhost:8080", nil) + err := http.ListenAndServeTLS("wogehtspam.:8080", "path_to_cert_file", "path_to_key_file", nil) if err != nil { log.Println(err) }