Commit 14ddef47 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: fix missed configure stage for p2p_tls mode

Wouldn't it be better to do this unconditionally if more CSC
features are pushed and this might be missed again?

PR: https://forum.opnsense.org/index.php?topic=2449.0
(cherry picked from commit d68e86e8)
parent 2c80f2bf
...@@ -1389,7 +1389,7 @@ function openvpn_get_remote_access_servers() ...@@ -1389,7 +1389,7 @@ function openvpn_get_remote_access_servers()
if (!empty($config['openvpn']['openvpn-server'])) { if (!empty($config['openvpn']['openvpn-server'])) {
foreach ($config['openvpn']['openvpn-server'] as $server) { foreach ($config['openvpn']['openvpn-server'] as $server) {
if (in_array($server['mode'], array('server_tls', 'server_user', 'server_tls_user'))) { if (in_array($server['mode'], array('server_tls', 'server_user', 'server_tls_user', 'p2p_tls'))) {
$result[$server['vpnid']] = $server; $result[$server['vpnid']] = $server;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment