mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
Fixed a regression introduced in fixing #55
This commit is contained in:
parent
a672da7b21
commit
2ffed27a77
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user