Add entrypoint script

This commit is contained in:
Owen Schwartz
2024-09-30 09:43:27 -04:00
parent 0afc01627b
commit 1576856abf
6 changed files with 32 additions and 22 deletions

View File

@@ -399,7 +399,7 @@ func periodicBandwidthCheck(endpoint string) {
}
}
func calculatePeerBandwidth() ([]PeerBandwidth, error) {
func calculatePeerBandwidth() ([]PeerBandwidth, error) { //TODO: fix this to actually only report the change in bandwidth from the last query
device, err := wgClient.Device(interfaceName)
if err != nil {
return nil, fmt.Errorf("failed to get device: %v", err)