From bfa7b33e1f512c49f9f6825a385bb44e7b6152f4 Mon Sep 17 00:00:00 2001 From: doktornotor Date: Sun, 20 Sep 2015 14:03:05 +0200 Subject: show openvpn interfaces while reassigning the interfaces for a restored config backup Resubmit of #1769 --- src/usr/local/www/interfaces_assign.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/usr/local/www/interfaces_assign.php b/src/usr/local/www/interfaces_assign.php index 88b8df1..0e2152e 100644 --- a/src/usr/local/www/interfaces_assign.php +++ b/src/usr/local/www/interfaces_assign.php @@ -196,11 +196,15 @@ $ovpn_descrs = array(); if (is_array($config['openvpn'])) { if (is_array($config['openvpn']['openvpn-server'])) { foreach ($config['openvpn']['openvpn-server'] as $s) { + $portname = "ovpns{$s['vpnid']}"; + $portlist[$portname] = $s; $ovpn_descrs[$s['vpnid']] = $s['description']; } } if (is_array($config['openvpn']['openvpn-client'])) { foreach ($config['openvpn']['openvpn-client'] as $c) { + $portname = "ovpnc{$c['vpnid']}"; + $portlist[$portname] = $c; $ovpn_descrs[$c['vpnid']] = $c['description']; } } @@ -556,4 +560,4 @@ display_top_tabs($tab_array);

- \ No newline at end of file + -- cgit v1.1