From d4226999b124951b617d5ecae69f5061bfe0b726 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 26 Mar 2019 13:45:30 +0100 Subject: [serversetup-bwlp-ipxe] Check for valid IP address before import --- modules-available/serversetup-bwlp-ipxe/page.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules-available/serversetup-bwlp-ipxe/page.inc.php') diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php index 9f8aa431..150796a5 100644 --- a/modules-available/serversetup-bwlp-ipxe/page.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php @@ -306,6 +306,10 @@ class Page_ServerSetup extends Page } if (empty($bootentryTable)) { + if (Property::getServerIp() === false || Property::getServerIp() === 'invalid') { + Message::addError('no-ip-set'); + Util::redirect('?do=serversetup&show=address'); + } IPxe::importLegacyMenu(true); $num = IPxe::importSubnetPxeMenus('/srv/openslx/tftp/pxelinux.cfg'); if ($num > 0) { -- cgit v1.2.3-55-g7522