Merge pull request #24 from GuillaumeFromage/stable-3.1

Added support for .co, which has the same layout as .cc (need another patch to add it to TLD table)
This commit is contained in:
Benjamin Sonntag 2016-02-24 16:12:02 +01:00
commit b867d5a4dd
1 changed files with 8 additions and 0 deletions

View File

@ -987,6 +987,14 @@ class m_dom {
} }
} }
break; break;
case "co":
if (preg_match("#Name Server:#", $ligne)) {
$found = true;
$tmp = strtolower(str_replace(chr(10), "", str_replace(chr(13), "", str_replace(" ", "", str_replace("Name Server:", "", $ligne)))));
if ($tmp)
$serveurList[] = $tmp;
}
break;
case "cx": case "cx":
$ligne = str_replace(chr(10), "", str_replace(chr(13), "", str_replace(" ", "", $ligne))); $ligne = str_replace(chr(10), "", str_replace(chr(13), "", str_replace(" ", "", $ligne)));
if ($ligne == "" && $state == 1) { if ($ligne == "" && $state == 1) {