aboutsummaryrefslogtreecommitdiff
path: root/modules/title.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/title.py')
-rw-r--r--modules/title.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/title.py b/modules/title.py
index ab4c3b45..614d0bbf 100644
--- a/modules/title.py
+++ b/modules/title.py
@@ -21,8 +21,8 @@ class Module(ModuleManager.BaseModule):
url = "http://%s" % url
hostname = urllib.parse.urlparse(url).hostname
- if utils.http.is_localhost(hostname):
- self.log.warn("tried to get title of localhost: %s", [url])
+ if not utils.http.host_permitted(hostname):
+ self.log.warn("Attempted to get forbidden host: %s", [url])
return -1, None
try: