No more funny business with InsecureSkipVerify

This commit is contained in:
Sasha Koshka
2023-05-27 03:57:27 -04:00
parent 9025844212
commit 5e37c4bb8f
8 changed files with 28 additions and 46 deletions

View File

@@ -3,7 +3,6 @@ package main
import "fmt"
import "log"
import "net/http"
import "crypto/tls"
import "hnakra/service"
func main () {
@@ -11,13 +10,10 @@ func main () {
http.HandleFunc("/gifs/", gifs)
http.Handle("/gifs/static/", http.StripPrefix("/gifs/static", static))
err := (&service.HTTP { Mount: service.MountConfig {
Path: "/gifs/",
Name: "Gifs",
Description: "Serves a lot of big gifs on one page.",
TLSConfig: &tls.Config { InsecureSkipVerify: true },
}}).Run()
err := service.NewHTTP (
"Gifs", "Serves a lot of big gifs on one page.",
"@", "/gifs/").Run()
if err != nil {
log.Println("XXX", err)