From 5e760ad284245b7e0bdb9516121976ada48ea4f0 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Wed, 22 Sep 2021 11:23:45 +0930 Subject: [PATCH] Use a less-likely-to-clash default port number --- README.md | 6 +++--- main.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7a85c47..6f60232 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,9 @@ TBD ## Running - gropple -port 8000 -address http://hostname:8000 -path /downloads + gropple -port 6283 -address http://hostname:6283 -path /downloads -With no arguments, it will listen on port 8000 and use an address of 'http://localhost:8000'. +With no arguments, it will listen on port 6283 and use an address of 'http://localhost:6283'. The address must be specified so that the bookmarklet can refer to the correct host when it is not running on your local machine. You may also need to specify @@ -26,7 +26,7 @@ a different address if you are running it behind a proxy server or similar. ## Using -Bring up `http://localhost:8000` (or your chosen address) in your browser. You should see a link to the bookmarklet at the top of the screen, and the list of downloads (currently empty). +Bring up `http://localhost:6283` (or your chosen address) in your browser. You should see a link to the bookmarklet at the top of the screen, and the list of downloads (currently empty). Drag the bookmarklet to your favourites bar, or otherwise bookmark it as you see fit. diff --git a/main.go b/main.go index ab45f00..051c3ec 100644 --- a/main.go +++ b/main.go @@ -44,8 +44,8 @@ var webFS embed.FS func main() { var port int - flag.IntVar(&port, "port", 8000, "port to listen on") - flag.StringVar(&address, "address", "http://localhost:8000", "address for the service") + flag.IntVar(&port, "port", 6283, "port to listen on") + flag.StringVar(&address, "address", "http://localhost:6283", "address for the service") flag.StringVar(&downloadPath, "path", "", "path for downloaded files - defaults to current directory") flag.Parse()