From 0ba254b9a2c4534d1d38f1560d26f4c7af72c9cd Mon Sep 17 00:00:00 2001 From: Stefan Date: Fri, 12 May 2023 08:17:31 +0200 Subject: [PATCH] Add Addresses to Gateways --- staticDevices.go | 1 + types.go | 1 + 2 files changed, 2 insertions(+) diff --git a/staticDevices.go b/staticDevices.go index c123013..8ad7b1e 100644 --- a/staticDevices.go +++ b/staticDevices.go @@ -28,6 +28,7 @@ func processGateways() []node { Gateway: "", NodeID: strings.ReplaceAll(d.Devices[i].MAC, ":", ""), MAC: d.Devices[i].MAC, + Adresses: d.Devices[i].Adresses, Domain: d.Devices[i].Domain, Hostname: "[Gateway] " + d.Devices[i].Name, Owner: "Freifunk Troisdorf", diff --git a/types.go b/types.go index 1fdd81b..0d47dc7 100644 --- a/types.go +++ b/types.go @@ -49,6 +49,7 @@ type device struct { Longitude float64 `json:"longitude"` Latitude float64 `json:"latitude"` } `json:"location"` + Adresses []string `json:"adresses"` } type devices struct { Devices []device `json:"devices"`