fix: [public-dns] Update the public-dns generator to remove non valid hostnames
Fix reported issue #214pull/217/head
parent
631b7d522e
commit
cd1baa3de5
File diff suppressed because it is too large
Load Diff
|
@ -66,7 +66,8 @@ def get_lists_publidns(file) -> Tuple[List, List, List]:
|
||||||
elif ip.version == 6:
|
elif ip.version == 6:
|
||||||
lipv6.append(ip.compressed)
|
lipv6.append(ip.compressed)
|
||||||
|
|
||||||
if row[1] not in (None, "", '.'):
|
if row[1] not in (None, '', '.', '-.'):
|
||||||
|
row[1] = row[1].rstrip('.')
|
||||||
lhostname.append(row[1])
|
lhostname.append(row[1])
|
||||||
except ValueError as exc:
|
except ValueError as exc:
|
||||||
logging.warning(str(exc))
|
logging.warning(str(exc))
|
||||||
|
|
Loading…
Reference in New Issue