Prepare connection via TLS.
This commit is contained in:
parent
516a5fa547
commit
890cb4a2c4
2
main.go
2
main.go
@ -10,7 +10,7 @@ func main() {
|
|||||||
|
|
||||||
http.HandleFunc("/", server.SocketHandler)
|
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 {
|
if err != nil {
|
||||||
log.Println(err)
|
log.Println(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user