mirror of
https://github.com/django/daphne.git
synced 2024-11-25 17:23:43 +03:00
Fixed #78: Use right variable for WS headers
This commit is contained in:
parent
60952b34bf
commit
4d23655b5c
|
@ -59,7 +59,7 @@ class WebSocketProtocol(WebSocketServerProtocol):
|
||||||
|
|
||||||
if self.main_factory.proxy_forwarded_address_header:
|
if self.main_factory.proxy_forwarded_address_header:
|
||||||
self.client_addr = parse_x_forwarded_for(
|
self.client_addr = parse_x_forwarded_for(
|
||||||
self.requestHeaders,
|
self.http_headers,
|
||||||
self.main_factory.proxy_forwarded_address_header,
|
self.main_factory.proxy_forwarded_address_header,
|
||||||
self.main_factory.proxy_forwarded_port_header,
|
self.main_factory.proxy_forwarded_port_header,
|
||||||
self.client_addr
|
self.client_addr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user