From 0588c5062cb7434e97f3d08012d30dd1e073ca5c Mon Sep 17 00:00:00 2001 From: Matthias Hannig Date: Fri, 25 Jan 2019 10:42:12 +0100 Subject: [PATCH] fixed type assertation --- bird/bird.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bird/bird.go b/bird/bird.go index 490a10a..1a1a5cd 100644 --- a/bird/bird.go +++ b/bird/bird.go @@ -281,7 +281,7 @@ func RoutesProto(protocol string) (Parsed, bool) { // Get all routes data, fromCache := RoutesProtoAll(protocol) - routes, ok := data["routes"].([]interface{}) + routes, ok := data["routes"].([]Parsed) if !ok { return NilParse, false }