netbios name servers may be DNS name

This commit is contained in:
Roland Gruber 2013-02-24 11:46:11 +00:00
parent 6b8706d9df
commit d98db5d4b2
1 changed files with 2 additions and 2 deletions

View File

@ -442,7 +442,7 @@ By default, the nodes are configured as H-Nodes which fits for small networks. I
$netbiosServers = explode(', ', $_POST['netbios']); $netbiosServers = explode(', ', $_POST['netbios']);
$netbiosServersOk = true; $netbiosServersOk = true;
for ($i = 0; $i < sizeof($netbiosServers); $i++) { for ($i = 0; $i < sizeof($netbiosServers); $i++) {
if (!check_ip($netbiosServers[$i])) { if (!check_ip($netbiosServers[$i]) && !get_preg($netbiosServers[$i], 'DNSname')) {
$netbiosServersOk = false; $netbiosServersOk = false;
break; 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']]); $ex = explode(",", $rawAccounts[$i][$ids['dhcp_settings_netbiosServer']]);
$invalid = false; $invalid = false;
foreach($ex AS $string) { foreach($ex AS $string) {
if (!check_ip($string)) { if (!check_ip($string) && !get_preg($string, 'DNSname')) {
$invalid = true; $invalid = true;
} }
} }