We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2504eaa commit 9b6e1afCopy full SHA for 9b6e1af
openwisp_controller/config/base/config.py
@@ -543,9 +543,9 @@ def get_vpn_context(self):
543
}
544
)
545
if vpnclient.public_key:
546
- context['public_key'] = vpnclient.public_key
+ context[f'client_public_key_{vpn_id}'] = vpnclient.public_key
547
if vpnclient.private_key:
548
- context['private_key'] = vpnclient.private_key
+ context[f'client_private_key_{vpn_id}'] = vpnclient.private_key
549
if vpn.subnet:
550
if vpnclient.ip:
551
context[vpn_context_keys['ip_address']] = vpnclient.ip.ip_address
0 commit comments