From 7a919d867b536e61ea504017a1c34dd4dbdd9233 Mon Sep 17 00:00:00 2001 From: Fernando Rodrigues Date: Sun, 14 Sep 2025 23:14:26 +1000 Subject: [PATCH] Change default port to 3004 to avoid a conflict with Pangolin's integration API. Signed-off-by: Fernando Rodrigues --- README.md | 4 ++-- main.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2dc9f64..1e4d916 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Note: You must use either `config` or `remoteConfig` to configure WireGuard. - `reportBandwidthTo` (optional): **DEPRECATED** - Use `remoteConfig` instead. Remote HTTP endpoint to send peer bandwidth data - `interface` (optional): Name of the WireGuard interface created by Gerbil. Default: `wg0` -- `listen` (optional): Port to listen on for HTTP server. Default: `:3003` +- `listen` (optional): Port to listen on for HTTP server. Default: `:3004` - `log-level` (optional): The log level to use (DEBUG, INFO, WARN, ERROR, FATAL). Default: `INFO` - `mtu` (optional): MTU of the WireGuard interface. Default: `1280` - `notify` (optional): URL to notify on peer changes @@ -84,7 +84,7 @@ Example: ```bash ./gerbil \ ---reachableAt=http://gerbil:3003 \ +--reachableAt=http://gerbil:3004 \ --generateAndSaveKeyTo=/var/config/key \ --remoteConfig=http://pangolin:3001/api/v1/ ``` diff --git a/main.go b/main.go index 344433f..7d6cdaf 100644 --- a/main.go +++ b/main.go @@ -150,7 +150,7 @@ func main() { flag.StringVar(&remoteConfigURL, "remoteConfig", "", "URL of the Pangolin server") } if listenAddr == "" { - flag.StringVar(&listenAddr, "listen", ":3003", "Address to listen on") + flag.StringVar(&listenAddr, "listen", ":3004", "Address to listen on") } // DEPRECATED AND UNSED: reportBandwidthTo // allow reportBandwidthTo to be passed but dont do anything with it just thow it away