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:
commit
b867d5a4dd
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue