From 6eb9242cc76b475d79cf98e85658ba3024e762aa Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Wed, 5 Sep 2018 23:40:08 -0600 Subject: Avoid doing work for UNIX sockets, just return localhost --- waitress/server.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/waitress/server.py b/waitress/server.py index 1823c0b..198d5fa 100644 --- a/waitress/server.py +++ b/waitress/server.py @@ -373,5 +373,8 @@ if hasattr(socket, 'AF_UNIX'): def fix_addr(self, addr): return ('localhost', None) + def get_server_name(self, ip): + return 'localhost' + # Compatibility alias. WSGIServer = TcpWSGIServer -- cgit v1.2.1