src: style sweep

This commit is contained in:
Franco Fichtner 2020-10-04 10:12:18 +02:00
parent 37f2ef7073
commit c4c7e8ab53
3 changed files with 14 additions and 14 deletions

View File

@ -78,6 +78,5 @@ class TrafficController extends ApiControllerBase
}
}
return $response;
}
}

View File

@ -46,18 +46,18 @@ class LogController extends IndexController
/* XXX manually hook up known services for now */
switch ($service) {
case 'ipsec':
$this->view->service = 'ipsec';
break;
case 'suricata':
$this->view->service = 'ids';
break;
case 'squid':
$this->view->service = 'proxy';
break;
default:
/* no service API at the moment */
break;
case 'ipsec':
$this->view->service = 'ipsec';
break;
case 'suricata':
$this->view->service = 'ids';
break;
case 'squid':
$this->view->service = 'proxy';
break;
default:
/* no service API at the moment */
break;
}
}

View File

@ -199,7 +199,8 @@ class AliasContentField extends BaseField
$domain_alias_count++;
}
}
if (strpos($network, "!") === 0 &&
if (
strpos($network, "!") === 0 &&
(Util::isIpAddress(substr($network, 1)) || Util::isSubnet(substr($network, 1)))
) {
// exclude address or network (https://www.freebsd.org/doc/handbook/firewalls-pf.html 30.3.2.4)