Set HTTP Server header to "Daphne" to avoid revealing Autobahn version number. (#122)

This commit is contained in:
Eric Menendez 2017-05-30 15:56:16 -07:00 committed by Andrew Godwin
parent 63d2166320
commit 4ff2384337

View File

@ -323,7 +323,7 @@ class HTTPFactory(http.HTTPFactory):
# We track all sub-protocols for response channel mapping
self.reply_protocols = {}
# Make a factory for WebSocket protocols
self.ws_factory = WebSocketFactory(self, protocols=ws_protocols)
self.ws_factory = WebSocketFactory(self, protocols=ws_protocols, server='Daphne')
self.ws_factory.setProtocolOptions(
autoPingTimeout=ping_timeout,
allowNullOrigin=True,