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