Skip to content

Commit 9b6e1af

Browse files
committed
[Fix] Support multiple wireguard tunnels on same device #657
Closes #657
1 parent 2504eaa commit 9b6e1af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openwisp_controller/config/base/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -543,9 +543,9 @@ def get_vpn_context(self):
543543
}
544544
)
545545
if vpnclient.public_key:
546-
context['public_key'] = vpnclient.public_key
546+
context[f'client_public_key_{vpn_id}'] = vpnclient.public_key
547547
if vpnclient.private_key:
548-
context['private_key'] = vpnclient.private_key
548+
context[f'client_private_key_{vpn_id}'] = vpnclient.private_key
549549
if vpn.subnet:
550550
if vpnclient.ip:
551551
context[vpn_context_keys['ip_address']] = vpnclient.ip.ip_address

0 commit comments

Comments
 (0)