diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2021-03-14 14:42:19 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2021-03-14 14:42:19 -0400 |
| commit | cd2a6a963c3841fcd83e5e2910dfa4d9241c97f9 (patch) | |
| tree | 099ad46d30030c9c6c50ba38d30b997dd26ed52e | |
| parent | b9bb17044a8c2b47c7e96660e27ab645f82bec9d (diff) | |
| download | steam-export-cd2a6a963c3841fcd83e5e2910dfa4d9241c97f9.tar.gz steam-export-cd2a6a963c3841fcd83e5e2910dfa4d9241c97f9.tar.xz | |
Block /quit on non-local machines
| -rw-r--r-- | cmd/web/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web/main.go b/cmd/web/main.go index 875b2d8..45b64ae 100644 --- a/cmd/web/main.go +++ b/cmd/web/main.go @@ -44,7 +44,7 @@ func main() { r := mux.NewRouter() - r.HandleFunc("/quit", HandleQuit) + r.Handle("/quit", UnauthorizedIfNotLocal(http.HandlerFunc(HandleQuit))) r.Handle("/setLib", UnauthorizedIfNotLocal(http.HandlerFunc(a.HandleSetLib))) r.Handle("/delete", UnauthorizedIfNotLocal(http.HandlerFunc(a.HandleDelete))) r.Handle("/install", UnauthorizedIfNotLocal(http.HandlerFunc(a.HandleInstall))) |
