Merge pull request #59 from raphaelm/patch-1

Fixed a regression introduced in fixing #55
This commit is contained in:
Andrew Godwin 2016-11-05 14:26:35 +01:00 committed by GitHub
commit 3e65675f78

View File

@ -57,7 +57,7 @@ class WebSocketProtocol(WebSocketServerProtocol):
self.client_addr = None
self.server_addr = None
if self.factory.proxy_forwarded_address_header:
if self.main_factory.proxy_forwarded_address_header:
self.client_addr = parse_x_forwarded_for(
self.requestHeaders,
self.main_factory.proxy_forwarded_address_header,