Add support for FTEQW protocol

It's the same as binary really, Quake servers use this to distinguish what client type is being used.
This commit is contained in:
Joshua Ashton 2021-08-29 08:51:11 +01:00
parent 5d8f5ccfab
commit bdcd685f8e
No known key found for this signature in database
GPG Key ID: C85A08669126BE8D
1 changed files with 3 additions and 1 deletions

View File

@ -35,7 +35,9 @@ from websockify.websocketserver import WebSocketRequestHandlerMixIn
class CompatibleWebSocket(WebSocket):
def select_subprotocol(self, protocols):
# Handle old websockify clients that still specify a sub-protocol
if 'binary' in protocols:
if 'fteqw' in protocols:
return 'fteqw'
elif 'binary' in protocols:
return 'binary'
else:
return ''