From d98db5d4b2a098401f9bf93823c3a51315f7e1b3 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 24 Feb 2013 11:46:11 +0000 Subject: [PATCH] netbios name servers may be DNS name --- lam/lib/modules/dhcp_settings.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/modules/dhcp_settings.inc b/lam/lib/modules/dhcp_settings.inc index 1379ca64..a367ca2f 100644 --- a/lam/lib/modules/dhcp_settings.inc +++ b/lam/lib/modules/dhcp_settings.inc @@ -442,7 +442,7 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I $netbiosServers = explode(', ', $_POST['netbios']); $netbiosServersOk = true; for ($i = 0; $i < sizeof($netbiosServers); $i++) { - if (!check_ip($netbiosServers[$i])) { + if (!check_ip($netbiosServers[$i]) && !get_preg($netbiosServers[$i], 'DNSname')) { $netbiosServersOk = false; break; } @@ -849,7 +849,7 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I $ex = explode(",", $rawAccounts[$i][$ids['dhcp_settings_netbiosServer']]); $invalid = false; foreach($ex AS $string) { - if (!check_ip($string)) { + if (!check_ip($string) && !get_preg($string, 'DNSname')) { $invalid = true; } }