diff options
author | doktornotor <notordoktor@gmail.com> | 2015-09-20 14:03:05 +0200 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-09-20 14:03:05 +0200 |
commit | bfa7b33e1f512c49f9f6825a385bb44e7b6152f4 (patch) | |
tree | 956b506d328a3aa86c28299f40d68755c19bbb07 /src/usr/local/www/interfaces_assign.php | |
parent | 3c596efc107243ac908b40bbf820ca7e5ff0cd30 (diff) | |
download | pfsense-bfa7b33e1f512c49f9f6825a385bb44e7b6152f4.zip pfsense-bfa7b33e1f512c49f9f6825a385bb44e7b6152f4.tar.gz |
show openvpn interfaces while reassigning the interfaces for a restored config backup
Resubmit of #1769
Diffstat (limited to 'src/usr/local/www/interfaces_assign.php')
-rw-r--r-- | src/usr/local/www/interfaces_assign.php | 6 |
1 files changed, 5 insertions, 1 deletions
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); <p class="alert alert-info"><?=gettext("Interfaces that are configured as members of a lagg(4) interface will not be shown.")?></p> -<?php include("foot.inc")?>
\ No newline at end of file +<?php include("foot.inc")?> |