diff --git a/main.go b/main.go
index f156af1..d6b1591 100644
--- a/main.go
+++ b/main.go
@@ -60,7 +60,7 @@ const routingTableTemplate = `
{{$route.NetStart}}{{if not (eq $route.NetStart $route.NetEnd)}} - {{$route.NetEnd}}{{end}} |
{{if $route.Extended}}✅{{else}}-{{end}} |
- {{range $route.ZoneNames}}{{.}} {{end}} |
+ {{range $route.ZoneNames.ToSlice}}{{.}} {{end}} |
{{$route.Distance}} |
{{$route.LastSeenAgo}} |
diff --git a/router/zones.go b/router/zones.go
index 1dc3ead..42bf81d 100644
--- a/router/zones.go
+++ b/router/zones.go
@@ -29,8 +29,8 @@ func (rt *RouteTable) AddZonesToNetwork(n ddp.Network, zs ...string) {
if n < r.NetStart || n > r.NetEnd {
continue
}
- if !r.Valid() {
- continue
+ if r.ZoneNames == nil {
+ r.ZoneNames = make(StringSet)
}
r.ZoneNames.Insert(zs...)
}
|