Skip to content

Commit

Permalink
missed some inc files for opnsense/core#2670
Browse files Browse the repository at this point in the history
  • Loading branch information
AdSchellevis committed Nov 29, 2018
1 parent d3f7e3d commit 94c0467
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion net/frr/src/etc/inc/plugins.inc.d/frr.inc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function frr_firewall($fw)
$ospf = new \OPNsense\Quagga\OSPF();

if ((string)$ospf->enabled == '1') {
foreach ($ospf->networks->network->__items as $network) {
foreach ($ospf->networks->network->iterateItems() as $network) {
if ((string)$network->enabled == '1') {
$fw->registerFilterRule(
1, /* priority */
Expand Down
2 changes: 1 addition & 1 deletion net/ftp-proxy/src/etc/inc/plugins.inc.d/ftpproxy.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function ftpproxy_enabled()
{
$model = new \OPNsense\FtpProxy\FtpProxy();

foreach ($model->ftpproxy->__items as $server) {
foreach ($model->ftpproxy->iterateItems() as $server) {
if ($server->enabled == '1') {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion net/quagga/src/etc/inc/plugins.inc.d/quagga.inc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function quagga_firewall($fw)
{
if (ospfd_enabled()) {
$ospf = new \OPNsense\Quagga\OSPF();
foreach ($ospf->networks->network->__items as $network) {
foreach ($ospf->networks->network->iterateItems() as $network) {
if ((string)$network->enabled == '1') {
$fw->registerFilterRule(
1, /* priority */
Expand Down
4 changes: 2 additions & 2 deletions security/tinc/src/etc/inc/plugins.inc.d/tinc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function tinc_enabled()
{
$mdl = new \OPNsense\Tinc\Tinc();

foreach ($mdl->networks->network->__items as $network) {
foreach ($mdl->networks->network->iterateItems() as $network) {
if ($network->enabled == '1') {
return true;
}
Expand All @@ -49,7 +49,7 @@ function tinc_syslog()
);
$mdl = new \OPNsense\Tinc\Tinc();

foreach ($mdl->networks->network->__items as $network) {
foreach ($mdl->networks->network->iterateItems() as $network) {
if ($network->enabled == '1') {
$logfacilities['tinc']['facility'][] = 'tinc.'.$network->name;
}
Expand Down
2 changes: 1 addition & 1 deletion security/tor/src/opnsense/scripts/tor/get_hostnames
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use \OPNsense\Tor\HiddenService;

$hostnames = array();
$services = new HiddenService();
foreach ($services->service->__items as $service) {
foreach ($services->service->iterateItems() as $service) {
$directory_name = ((string)$service->name);
$hostnamefile = TOR_DATA_DIR . '/' . $directory_name . '/hostname';
if (file_exists($hostnamefile)) {
Expand Down

0 comments on commit 94c0467

Please sign in to comment.