Fixed #78: Use right variable for WS headers

This commit is contained in:
Andrew Godwin 2017-02-10 09:52:16 -08:00
parent 60952b34bf
commit 4d23655b5c

View File

@ -59,7 +59,7 @@ class WebSocketProtocol(WebSocketServerProtocol):
if self.main_factory.proxy_forwarded_address_header:
self.client_addr = parse_x_forwarded_for(
self.requestHeaders,
self.http_headers,
self.main_factory.proxy_forwarded_address_header,
self.main_factory.proxy_forwarded_port_header,
self.client_addr