mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-01-31 03:26:17 +00:00
Add route policy restriction status to peer data in JSON response
This commit is contained in:
@@ -135,6 +135,7 @@ def peer_info(request):
|
|||||||
'public_key': str(peer.public_key),
|
'public_key': str(peer.public_key),
|
||||||
'uuid': str(peer.uuid),
|
'uuid': str(peer.uuid),
|
||||||
'private_key_exists': bool(peer.private_key),
|
'private_key_exists': bool(peer.private_key),
|
||||||
|
'is_route_policy_restricted': peer.is_route_policy_restricted,
|
||||||
}
|
}
|
||||||
return JsonResponse(data)
|
return JsonResponse(data)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user