diff options
-rw-r--r-- | drakpxelinux.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drakpxelinux.pl b/drakpxelinux.pl index c7f2eaa..baf8321 100644 --- a/drakpxelinux.pl +++ b/drakpxelinux.pl @@ -685,7 +685,9 @@ sub edit_box_item { $listpxe[$i]{network} = "dhcp"; } else { $listpxe[$i]{network} = $ipaddr->get_text; - is_ip($listpxe[$i]{network}) or err_dialog(N("Error!"), N("Please enter a valid IP address.")) and return; + if ($listpxe[$i]{kernel} !~ /memdisk/) { + is_ip($listpxe[$i]{network}) or err_dialog(N("Error!"), N("Please enter a valid IP address.")) and return; + } } $listpxe[$i]{server} = $server->get_text; $listpxe[$i]{directory} = $directory->get_text; |