diff --git a/dns/dyndns/Makefile b/dns/dyndns/Makefile index 5c64cc3b2..761da3443 100644 --- a/dns/dyndns/Makefile +++ b/dns/dyndns/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= dyndns PLUGIN_VERSION= 1.1 +PLUGIN_REVISION= 1 PLUGIN_COMMENT= Dynamic DNS Support PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/dns/rfc2136/Makefile b/dns/rfc2136/Makefile index 61084645e..90f92f343 100644 --- a/dns/rfc2136/Makefile +++ b/dns/rfc2136/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= rfc2136 PLUGIN_VERSION= 1.0 +PLUGIN_REVISION= 1 PLUGIN_COMMENT= RFC-2136 Support PLUGIN_MAINTAINER= franco@opnsense.org PLUGIN_DEPENDS= bind911 diff --git a/net/igmp-proxy/Makefile b/net/igmp-proxy/Makefile index 11a747eee..1194f9f4d 100644 --- a/net/igmp-proxy/Makefile +++ b/net/igmp-proxy/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= igmp-proxy PLUGIN_VERSION= 1.1 +PLUGIN_REVISION= 1 PLUGIN_DEPENDS= igmpproxy PLUGIN_COMMENT= IGMP-Proxy Service PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/net/l2tp/Makefile b/net/l2tp/Makefile index ab279f603..35659cc4f 100644 --- a/net/l2tp/Makefile +++ b/net/l2tp/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= l2tp PLUGIN_VERSION= 1.7 +PLUGIN_REVISION= 1 PLUGIN_DEPENDS= clog mpd5 PLUGIN_COMMENT= L2TP server based on MPD5 PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/net/l2tp/src/www/vpn_l2tp.php b/net/l2tp/src/www/vpn_l2tp.php index a7d947403..7cb56ac44 100644 --- a/net/l2tp/src/www/vpn_l2tp.php +++ b/net/l2tp/src/www/vpn_l2tp.php @@ -34,9 +34,7 @@ require_once("system.inc"); require_once("plugins.inc.d/if_l2tp.inc"); $l2tpcfg = &config_read_array('l2tp'); -if (!isset($config['l2tp']['radius']) || !is_array($config['l2tp']['radius'])) { - $config['l2tp']['radius'] = array(); -} +config_read_array('l2tp', 'radius'); if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig['remoteip'] = $l2tpcfg['remoteip']; diff --git a/net/pppoe/Makefile b/net/pppoe/Makefile index 493f612f0..b90bb7ed9 100644 --- a/net/pppoe/Makefile +++ b/net/pppoe/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= pppoe PLUGIN_VERSION= 1.7 +PLUGIN_REVISION= 1 PLUGIN_DEPENDS= clog mpd5 PLUGIN_COMMENT= PPPoE server based on MPD5 PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/net/pptp/Makefile b/net/pptp/Makefile index 838cbdf59..42ae7db74 100644 --- a/net/pptp/Makefile +++ b/net/pptp/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= pptp PLUGIN_VERSION= 1.7 +PLUGIN_REVISION= 1 PLUGIN_DEPENDS= clog mpd5 PLUGIN_COMMENT= PPTP server based on MPD5 PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/net/relayd/Makefile b/net/relayd/Makefile index f049880a5..52183123e 100644 --- a/net/relayd/Makefile +++ b/net/relayd/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= relayd PLUGIN_VERSION= 1.1 +PLUGIN_REVISION= 1 PLUGIN_DEPENDS= relayd PLUGIN_COMMENT= Relayd Load Balancer PLUGIN_MAINTAINER= franco@opnsense.org diff --git a/net/relayd/src/www/load_balancer_setting.php b/net/relayd/src/www/load_balancer_setting.php index fb1855bfd..478aa09aa 100644 --- a/net/relayd/src/www/load_balancer_setting.php +++ b/net/relayd/src/www/load_balancer_setting.php @@ -34,13 +34,7 @@ require_once("services.inc"); require_once("plugins.inc.d/relayd.inc"); require_once("interfaces.inc"); -if (empty($config['load_balancer']) || !is_array($config['load_balancer'])) { - $config['load_balancer'] = array(); -} - -if (empty($config['load_balancer']['setting']) || !is_array($config['load_balancer']['setting'])) { - $config['load_balancer']['setting'] = array(); -} +config_read_array('load_balancer', 'setting'); if ($_SERVER['REQUEST_METHOD'] === 'GET') { $pconfig = array(); diff --git a/net/wol/Makefile b/net/wol/Makefile index 0d5c8e82c..583164443 100644 --- a/net/wol/Makefile +++ b/net/wol/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= wol PLUGIN_VERSION= 1.0 +PLUGIN_REVISION= 1 PLUGIN_DEPENDS= wol PLUGIN_COMMENT= Wake on LAN Service PLUGIN_MAINTAINER= franco@opnsense.org