Set HTTP Server header to "Daphne" to avoid revealing Autobahn version number.

This commit is contained in:
Eric Menendez 2017-05-30 15:31:57 -07:00
parent 63d2166320
commit 3348c54866

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,