From e81982dd413921cc1a71d5f1877d08352a3b2d89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 24 Apr 2023 14:17:28 +0200 Subject: [PATCH] make clients prior to 3.5 not supported in any case --- server/src/uds/REST/methods/client.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/src/uds/REST/methods/client.py b/server/src/uds/REST/methods/client.py index 59c6ac958..7af288faa 100644 --- a/server/src/uds/REST/methods/client.py +++ b/server/src/uds/REST/methods/client.py @@ -134,6 +134,11 @@ class Client(Handler): self._args ) # If more than 2 args, got an error. pylint: disable=unbalanced-tuple-unpacking hostname = self._params['hostname'] # Or if hostname is not included... + + version = self._params.get('version', '0.0.0') + if version < '3.6.0': + return Client.result(error='Client version not supported.\n Please, upgrade it.') + srcIp = self._request.ip # Ip is optional,