src: style sweep

This commit is contained in:
Franco Fichtner 2024-05-22 11:50:00 +02:00
parent 8213afd810
commit c9423dbf5f
2 changed files with 3 additions and 2 deletions

View File

@ -42,7 +42,7 @@ function dhcrelay_run()
];
}
function dhcrelay_syslog()
function dhcrelay_syslog()
{
return [
'dhcrelay' => ['facility' => ['dhcrelay']]

View File

@ -141,7 +141,8 @@ class IPPortField extends BaseField
continue;
}
}
if ($this->internalHostnameAllowed &&
if (
$this->internalHostnameAllowed &&
count($parts) == 2 &&
Util::isPort($parts[1]) &&
filter_var($parts[0], FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME) !== false