diff options
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/page.inc.php')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/page.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php index 122c3791..4fd324da 100644 --- a/modules-available/serversetup-bwlp-ipxe/page.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php @@ -132,7 +132,7 @@ class Page_ServerSetup extends Page $subs = Dashboard::getSubmenus(); if (empty($subs)) { User::assertPermission('download'); - } elseif (Property::getServerIp() === 'invalid' && $addr) { + } elseif ($addr && !preg_match('/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/', Property::getServerIp())) { Util::redirect('?do=serversetup&show=address'); } else { Util::redirect($subs[0]['url']); |