mirror of https://github.com/django/django.git
[1.5.x] Prevented host resolution when running dev server
Refs #19075, #2494.
Thanks Karen Tracey for spotting the issue.
Backport of 3e98d98b6
from master.
This commit is contained in:
parent
4b2fb7efea
commit
e51a9c0c94
|
@ -138,6 +138,10 @@ class WSGIRequestHandler(simple_server.WSGIRequestHandler, object):
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue