Implement simple basic auth.

Closes #326.
This commit is contained in:
Eugene Bujak
2018-09-18 20:59:41 +03:00
parent a2f06aadc0
commit 4548eb8d11
4 changed files with 72 additions and 30 deletions

2
app.go
View File

@@ -119,7 +119,7 @@ func main() {
runStatsCollectors()
runFilterRefreshers()
http.Handle("/", http.FileServer(box))
http.Handle("/", optionalAuthHandler(http.FileServer(box)))
registerControlHandlers()
err = startDNSServer()