Change default port to 3004 to avoid a conflict with Pangolin's integration API.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues
2025-09-14 23:14:26 +10:00
parent dd208ab67c
commit 7a919d867b
2 changed files with 3 additions and 3 deletions

View File

@@ -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 - `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` - `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` - `log-level` (optional): The log level to use (DEBUG, INFO, WARN, ERROR, FATAL). Default: `INFO`
- `mtu` (optional): MTU of the WireGuard interface. Default: `1280` - `mtu` (optional): MTU of the WireGuard interface. Default: `1280`
- `notify` (optional): URL to notify on peer changes - `notify` (optional): URL to notify on peer changes
@@ -84,7 +84,7 @@ Example:
```bash ```bash
./gerbil \ ./gerbil \
--reachableAt=http://gerbil:3003 \ --reachableAt=http://gerbil:3004 \
--generateAndSaveKeyTo=/var/config/key \ --generateAndSaveKeyTo=/var/config/key \
--remoteConfig=http://pangolin:3001/api/v1/ --remoteConfig=http://pangolin:3001/api/v1/
``` ```

View File

@@ -150,7 +150,7 @@ func main() {
flag.StringVar(&remoteConfigURL, "remoteConfig", "", "URL of the Pangolin server") flag.StringVar(&remoteConfigURL, "remoteConfig", "", "URL of the Pangolin server")
} }
if listenAddr == "" { if listenAddr == "" {
flag.StringVar(&listenAddr, "listen", ":3003", "Address to listen on") flag.StringVar(&listenAddr, "listen", ":3004", "Address to listen on")
} }
// DEPRECATED AND UNSED: reportBandwidthTo // DEPRECATED AND UNSED: reportBandwidthTo
// allow reportBandwidthTo to be passed but dont do anything with it just thow it away // allow reportBandwidthTo to be passed but dont do anything with it just thow it away