Implement matching of hostnames and schemes
This commit is contained in:
@@ -24,8 +24,8 @@ func main() {
|
||||
mux.Handle("/", gmi.FileServer(gmi.Dir("/var/www")))
|
||||
|
||||
server := gmi.Server{
|
||||
Handler: mux,
|
||||
Certificate: cert,
|
||||
}
|
||||
server.Handle("localhost", mux)
|
||||
server.ListenAndServe()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user