mirror of
https://github.com/fosrl/gerbil.git
synced 2026-02-07 21:46:40 +00:00
Merge pull request #28 from SigmaSquadron/push-unypywyqkkrl
Change default port to 3004 to avoid a conflict with Pangolin's integration API.
This commit is contained in:
@@ -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/
|
||||||
```
|
```
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user