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 "sync"
import "path"
import "net/http"
import "crypto/tls"
import "html/template"
import "hnakra/service"
@@ -28,12 +27,10 @@ func main () {
board.mux = http.NewServeMux()
board.Service = service.Service {
&service.HTTP {
Mount: service.MountConfig {
Path: board.root,
Name: "Board",
Description: "A board where you can post things.",
TLSConfig: &tls.Config { InsecureSkipVerify: true },
},
Mount: service.M (
"Board",
"A board where you can post things.",
"@", board.root),
Handler: board.mux,
},
}