aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2021-03-14 14:42:19 -0400
committerMitch Riedstra <mitch@riedstra.us>2021-03-14 14:42:19 -0400
commitcd2a6a963c3841fcd83e5e2910dfa4d9241c97f9 (patch)
tree099ad46d30030c9c6c50ba38d30b997dd26ed52e
parentb9bb17044a8c2b47c7e96660e27ab645f82bec9d (diff)
downloadsteam-export-cd2a6a963c3841fcd83e5e2910dfa4d9241c97f9.tar.gz
steam-export-cd2a6a963c3841fcd83e5e2910dfa4d9241c97f9.tar.xz
Block /quit on non-local machines
-rw-r--r--cmd/web/main.go2
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)))