Fix check whether start and end address have been set in Ip rule (#1375)

by @fabacino
This commit is contained in:
Fabian Wiget 2022-01-19 11:36:13 +01:00 committed by GitHub
parent 4c21a7ffc9
commit 4847fe45ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ final class Ip extends AbstractRule
private function createRange(): ?string
{
if ($this->endAddress && $this->endAddress) {
if ($this->startAddress && $this->endAddress) {
return $this->startAddress . '-' . $this->endAddress;
}