No more funny business with InsecureSkipVerify
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user