diff options
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/api.inc.php')
-rw-r--r-- | modules-available/serversetup-bwlp-ipxe/api.inc.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/api.inc.php b/modules-available/serversetup-bwlp-ipxe/api.inc.php index 73461901..7a81f430 100644 --- a/modules-available/serversetup-bwlp-ipxe/api.inc.php +++ b/modules-available/serversetup-bwlp-ipxe/api.inc.php @@ -68,7 +68,12 @@ $ip = $_SERVER['REMOTE_ADDR']; if (substr($ip, 0, 7) === '::ffff:') { $ip = substr($ip, 7); } -$menu = IPxeMenu::forClient($ip, $uuid); +$menu = Request::get('menuid', false, 'int'); +if ($menu !== false) { + $menu = new IPxeMenu($menu); +} else { + $menu = IPxeMenu::forClient($ip, $uuid); +} // Get preferred localboot method, depending on system model |