Permalink
Browse files

Prevented host resolution when running dev server

Refs #19075, #2494.
Thanks Karen Tracey for spotting the issue.
  • Loading branch information...
1 parent 0546794 commit 3e98d98b69e67f2f72055e4b3204d0486eaeff50 @claudep claudep committed Nov 3, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/core/servers/basehttp.py
@@ -138,6 +138,10 @@ def __init__(self, *args, **kwargs):
self.style = color_style()
super(WSGIRequestHandler, self).__init__(*args, **kwargs)
+ def address_string(self):
+ # Short-circuit parent method to not call socket.getfqdn
+ return self.client_address[0]
+
def log_message(self, format, *args):
# Don't bother logging requests for admin images or the favicon.
if (self.path.startswith(self.admin_static_prefix)

0 comments on commit 3e98d98

Please sign in to comment.