diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2021-01-08 22:25:55 -0500 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2021-01-08 22:25:55 -0500 |
| commit | 11c0e0ca37ce58d74f3cd5831265b9912f6bc8ea (patch) | |
| tree | 358be5b2e8b3f6c0a0ffcfc8fce4fc9432bd14c5 /cmd/web/install.go | |
| parent | f26c564dcadf71e7c4c8fe99555fb7d038216140 (diff) | |
| download | steam-export-11c0e0ca37ce58d74f3cd5831265b9912f6bc8ea.tar.gz steam-export-11c0e0ca37ce58d74f3cd5831265b9912f6bc8ea.tar.xz | |
Make the application a bit more user friendly
Make a split between being accessed over loopback and remotely.
Attempt to show the IP of the server on the internal page to make
it easy to hand out.
Remove the ability to change any of the runtime configuration
or quit the program unless you're local.
Diffstat (limited to 'cmd/web/install.go')
| -rw-r--r-- | cmd/web/install.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/web/install.go b/cmd/web/install.go index aae4191..63faaf6 100644 --- a/cmd/web/install.go +++ b/cmd/web/install.go @@ -83,6 +83,11 @@ func installer(urls <-chan string) { } func gameInstaller(w http.ResponseWriter, r *http.Request) { + if unauthorizedIfNotLocal(w, r) { + return + } + + err := r.ParseForm() if err != nil { Logger.Printf("Installer: While parsing form: %s", err) |
