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

@@ -2,17 +2,11 @@ package main
import "log"
import "net/http"
import "crypto/tls"
import "hnakra/service"
func main () {
http.HandleFunc("/hello/", hellorld)
err := (&service.HTTP { Mount: service.MountConfig {
Path: "/hello/",
Name: "Hellorld",
Description: "A test service.",
TLSConfig: &tls.Config { InsecureSkipVerify: true },
}}).Run()
err := service.NewHTTP("Hellorld", "A test service.", "@", "/hello/").Run()
if err != nil {
log.Println("XXX", err)