diff options
author | Simon Rettberg | 2019-03-26 13:45:30 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-26 13:45:30 +0100 |
commit | d4226999b124951b617d5ecae69f5061bfe0b726 (patch) | |
tree | c441e4e319c83029a83fa85d7230bfb5deed6b85 /modules-available/serversetup-bwlp-ipxe/page.inc.php | |
parent | Update translations (diff) | |
download | slx-admin-d4226999b124951b617d5ecae69f5061bfe0b726.tar.gz slx-admin-d4226999b124951b617d5ecae69f5061bfe0b726.tar.xz slx-admin-d4226999b124951b617d5ecae69f5061bfe0b726.zip |
[serversetup-bwlp-ipxe] Check for valid IP address before import
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/page.inc.php')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/page.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |