diff --git a/pkg/mesh/config.go b/pkg/mesh/config.go index 0e1fa11..99d6795 100644 --- a/pkg/mesh/config.go +++ b/pkg/mesh/config.go @@ -238,7 +238,7 @@ func (m *WgMeshConfigApplyer) getClientConfig(params *GetConfigParams) (*wgtypes }) }) - routesForMesh = lib.Filter(routesForMesh, func(rns []routeNode) { + routesForMesh = lib.Filter(routesForMesh, func(rns []routeNode) bool { return len(rns) != 0 })