From f1058c790c946e0543d36752b52e8f07278403cf Mon Sep 17 00:00:00 2001 From: Jacob McSwain Date: Thu, 15 Feb 2024 00:16:42 -0600 Subject: [PATCH] aredn_compat: treat br0 like a DTD connection --- internal/server/api/controllers/v1/aredn_compat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/server/api/controllers/v1/aredn_compat.go b/internal/server/api/controllers/v1/aredn_compat.go index 5a1aad4d..7b38f187 100644 --- a/internal/server/api/controllers/v1/aredn_compat.go +++ b/internal/server/api/controllers/v1/aredn_compat.go @@ -280,8 +280,8 @@ func getLinkInfo() map[string]apimodels.LinkInfo { linkType = "DTD" } else if strings.HasPrefix(link.OLSRInterface, "wg") { linkType = "WIREGUARD" - } else { - linkType = "UNKNOWN" + } else if link.OLSRInterface == "br0" { + linkType = "DTD" } ret[ips[0].String()] = apimodels.LinkInfo{