From 1203255e81b9073cdef0dd07d2f7a3bdb2a31809 Mon Sep 17 00:00:00 2001 From: Owen Schwartz Date: Tue, 24 Dec 2024 16:22:27 -0500 Subject: [PATCH] Clean up mod --- go.mod | 3 ++- main.go | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 36ffe8f..edd2de6 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,8 @@ module github.com/fosrl/gerbil -go 1.21.5 +go 1.23.1 +toolchain go1.23.2 require ( github.com/vishvananda/netlink v1.3.0 golang.zx2c4.com/wireguard/wgctrl v0.0.0-20230429144221-925a1e7659e6 diff --git a/main.go b/main.go index 366ffb4..54e312e 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,7 @@ import ( var ( interfaceName = "wg0" - listenAddr = ":3002" + listenAddr = ":3003" lastReadings = make(map[string]PeerReading) mu sync.Mutex ) @@ -79,7 +79,7 @@ func main() { interfaceNameArg := flag.String("interface", "wg0", "Name of the WireGuard interface") configFile := flag.String("config", "", "Path to local configuration file") remoteConfigURL := flag.String("remoteConfig", "", "URL to fetch remote configuration") - listenAddrArg := flag.String("listen", ":3002", "Address to listen on") + listenAddrArg := flag.String("listen", ":3003", "Address to listen on") reportBandwidthTo := flag.String("reportBandwidthTo", "", "Address to listen on") generateAndSaveKeyTo := flag.String("generateAndSaveKeyTo", "", "Path to save generated private key") reachableAt := flag.String("reachableAt", "", "Endpoint of the http server to tell remote config about") @@ -579,7 +579,7 @@ func reportPeerBandwidth(apiURL string) error { return fmt.Errorf("failed to marshal bandwidth data: %v", err) } - logger.Info("Reporting bandwidth data: %s", string(jsonData)) + logger.Debug("Reporting bandwidth data: %s", string(jsonData)) resp, err := http.Post(apiURL, "application/json", bytes.NewBuffer(jsonData)) if err != nil {