mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(legacy) openvpn dependencies and missing vars
This commit is contained in:
parent
475cd2411b
commit
4ebd5894dd
@ -111,7 +111,7 @@ function openvpn_vpnid_next() {
|
||||
function openvpn_port_used($prot, $interface, $port, $curvpnid = 0) {
|
||||
global $config;
|
||||
|
||||
if (is_array($config['openvpn']['openvpn-server'])) {
|
||||
if (isset($config['openvpn']['openvpn-server'])) {
|
||||
foreach ($config['openvpn']['openvpn-server'] as & $settings) {
|
||||
if (isset($settings['disable']))
|
||||
continue;
|
||||
@ -125,7 +125,7 @@ function openvpn_port_used($prot, $interface, $port, $curvpnid = 0) {
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($config['openvpn']['openvpn-client'])) {
|
||||
if (isset($config['openvpn']['openvpn-client'])) {
|
||||
foreach ($config['openvpn']['openvpn-client'] as & $settings) {
|
||||
if (isset($settings['disable']))
|
||||
continue;
|
||||
|
||||
@ -30,6 +30,7 @@ require_once("guiconfig.inc");
|
||||
require_once("captiveportal.inc");
|
||||
require_once("services.inc");
|
||||
require_once("pfsense-utils.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
$cpzone = $_GET['zone'];
|
||||
if (isset($_POST['zone']))
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
|
||||
require_once("guiconfig.inc");
|
||||
require_once("services.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
$a_gateways = return_gateways_array();
|
||||
$gateways_status = array();
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
|
||||
require_once("guiconfig.inc");
|
||||
require_once("services.inc");
|
||||
require_once("interfaces.inc");
|
||||
|
||||
if ($_POST) {
|
||||
if ($_POST['clear'] == "Clear") {
|
||||
|
||||
@ -42,7 +42,7 @@ global $current_openvpn_version, $current_openvpn_version_rev;
|
||||
|
||||
$pgtitle = array("OpenVPN", "Client Export Utility");
|
||||
|
||||
if (!is_array($config['openvpn']['openvpn-server'])) {
|
||||
if (!isset($config['openvpn']['openvpn-server'])) {
|
||||
$config['openvpn']['openvpn-server'] = array();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user