From ed50883cff47bf7945128d6aaac962f385cc871f Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 27 Jan 2026 14:44:10 -0300 Subject: [PATCH] Add route policy restriction status to peer data in JSON response --- api/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/views.py b/api/views.py index 4273183..4074532 100644 --- a/api/views.py +++ b/api/views.py @@ -135,6 +135,7 @@ def peer_info(request): 'public_key': str(peer.public_key), 'uuid': str(peer.uuid), 'private_key_exists': bool(peer.private_key), + 'is_route_policy_restricted': peer.is_route_policy_restricted, } return JsonResponse(data)