diff --git a/library/Rules/Ip.php b/library/Rules/Ip.php index ea3d7d4e..c82c1951 100644 --- a/library/Rules/Ip.php +++ b/library/Rules/Ip.php @@ -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; }