ZeroName only match .bit domains

This commit is contained in:
shortcutme 2017-06-13 14:19:43 +02:00
parent 42874038e2
commit bc02de4b18
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -30,7 +30,7 @@ class SiteManagerPlugin(object):
# Return: True if the address is domain
def isDomain(self, address):
return re.match("(.*?)([A-Za-z0-9_-]+\.[A-Za-z0-9]+)$", address)
return re.match("(.*?)([A-Za-z0-9_-]+\.bit)$", address)
# Resolve domain
# Return: The address or None