1
0
Fork 0
mirror of https://github.com/sileht/bird-lg.git synced 2024-11-04 15:14:42 +01:00

Remove ipv6 whois

This commit is contained in:
Mehdi Abaakouk 2012-01-20 16:55:30 +01:00
parent 53e48a4076
commit bf6dbe8d73

1
lg.py
View file

@ -26,7 +26,6 @@ def add_links(text):
else: else:
line = re.sub(r'AS(\d+)', r'<a href="/whois/\1" class="whois">AS\1</a>',line) line = re.sub(r'AS(\d+)', r'<a href="/whois/\1" class="whois">AS\1</a>',line)
line = re.sub(r'(\d+\.\d+\.\d+\.\d+)', r'<a href="/whois/\1" class="whois">\1</a>',line) line = re.sub(r'(\d+\.\d+\.\d+\.\d+)', r'<a href="/whois/\1" class="whois">\1</a>',line)
line = re.sub(r'([0-9a-fA-F:]*)', r'<a href="/whois/\1" class="whois">\1</a>',line)
ret_text.append(line) ret_text.append(line)
return "\n".join(ret_text) return "\n".join(ret_text)