Require directory membership to view the directory

This commit is contained in:
Ian Gulliver
2026-08-16 11:27:00 -07:00
parent 366e3bb8a2
commit 4d70d6c2a8
4 changed files with 25 additions and 2 deletions
+1 -1
View File
@@ -118,5 +118,5 @@ func main() {
port = "8080"
}
log.Printf("listening on http://localhost:%s", port)
log.Fatal(http.ListenAndServe(":"+port, noCache(authn.Wrap(mux))))
log.Fatal(http.ListenAndServe(":"+port, noCache(authn.Wrap(directory.MemberGate(cache, mux)))))
}