From 862569d1032343241f0468ab9625a04bc806dff3 Mon Sep 17 00:00:00 2001 From: nrbffs <38812627+nrbffs@users.noreply.github.com> Date: Sat, 9 Nov 2019 17:42:05 +0100 Subject: [PATCH] nodelist: add zip --- output/nodelist/nodelist.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/output/nodelist/nodelist.go b/output/nodelist/nodelist.go index ca680a0..75d7ccd 100644 --- a/output/nodelist/nodelist.go +++ b/output/nodelist/nodelist.go @@ -21,6 +21,7 @@ type Node struct { LastContact jsontime.Time `json:"lastcontact"` Clients uint32 `json:"clients"` } `json:"status"` + Zip string `json:"zip"` } type Position struct { @@ -36,6 +37,7 @@ func NewNode(n *runtime.Node) (node *Node) { } if location := nodeinfo.Location; location != nil { node.Position = &Position{Lat: location.Latitude, Long: location.Longitude} + node.Zip = location.Zip } node.Status.Online = n.Online -- GitLab