Prepare connection via TLS.

This commit is contained in:
Marco 2022-12-18 02:41:35 +01:00
parent 516a5fa547
commit 890cb4a2c4

View File

@ -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)
}