Skip to content

Commit

Permalink
Fix client version check
Browse files Browse the repository at this point in the history
  • Loading branch information
dfilsinger-erminas committed Feb 1, 2023
1 parent 74e64eb commit 53b1cd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion revpi-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ async def get_client_requests(self, client, path):

if command == "login":
client_version = str(args[0])
if client_version in self.supported_client_versions:
if not client_version in self.supported_client_versions:
logging.info("Unsupported client version")
return_message = {"error": "ERROR_UNSUPPORTED_VERSION"}
self.send_websocket_message(client, message + ";" + json.dumps(return_message))
Expand Down

0 comments on commit 53b1cd7

Please sign in to comment.