From 2ffed27a7753cee2f490714a0b7891fd47be15cf Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sat, 5 Nov 2016 14:18:54 +0100 Subject: [PATCH] Fixed a regression introduced in fixing #55 --- daphne/ws_protocol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daphne/ws_protocol.py b/daphne/ws_protocol.py index f880a3a..92aff47 100755 --- a/daphne/ws_protocol.py +++ b/daphne/ws_protocol.py @@ -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,