Fixed a regression introduced in fixing #55

This commit is contained in:
Raphael Michel 2016-11-05 14:18:54 +01:00 committed by GitHub
parent a672da7b21
commit 2ffed27a77

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,