mirror of
https://github.com/django/daphne.git
synced 2024-11-21 23:46:33 +03:00
Merge pull request #59 from raphaelm/patch-1
Fixed a regression introduced in fixing #55
This commit is contained in:
commit
3e65675f78
|
@ -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