From 1ce28655647cb436dfee6cf60a722734e643afcd Mon Sep 17 00:00:00 2001 From: codeking Date: Thu, 19 Sep 2024 02:23:03 +0200 Subject: [PATCH] Implement additional dependency check --- core/controllers/ConnectionController.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/controllers/ConnectionController.py b/core/controllers/ConnectionController.py index 0809039..975e74b 100644 --- a/core/controllers/ConnectionController.py +++ b/core/controllers/ConnectionController.py @@ -302,6 +302,9 @@ class ConnectionController: @staticmethod def system_uses_wireguard_interface(): + if subprocess.getstatusoutput('ip --help')[0] == 127: + raise OSError('The iproute2 utility package does not appear to be installed.') + process = subprocess.Popen(('ip', 'route', 'get', '192.0.2.1'), stdout=subprocess.PIPE) process_output = str(process.stdout.read())