mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-26 13:21:14 +00:00
Add handling for peers without private keys and update translations
This commit is contained in:
@@ -129,6 +129,7 @@ def peer_info(request):
|
||||
'name': str(peer),
|
||||
'public_key': str(peer.public_key),
|
||||
'uuid': str(peer.uuid),
|
||||
'private_key_exists': bool(peer.private_key),
|
||||
}
|
||||
return JsonResponse(data)
|
||||
|
||||
|
Reference in New Issue
Block a user