From 3c07d6860ee72879ffffad13dc285ec74bf961e0 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Sat, 21 Dec 2024 01:09:22 +0100 Subject: [PATCH] Check for lowercase android/ios Signed-off-by: Jeroen Oudshoorn --- pwnagotchi/plugins/default/bt-tether.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwnagotchi/plugins/default/bt-tether.py b/pwnagotchi/plugins/default/bt-tether.py index 085994c1..d98160d7 100644 --- a/pwnagotchi/plugins/default/bt-tether.py +++ b/pwnagotchi/plugins/default/bt-tether.py @@ -21,10 +21,10 @@ class BTTether(plugins.Plugin): def on_ready(self, agent): ip = self.options['ip'] - if self.options['phone'] == 'android': + if self.options['phone'].lower() == 'android': address = f'{ip}/24,192.168.44.1' route = '192.168.44.0/24,192.168.44.1' - elif self.options['phone'] == 'ios': + elif self.options['phone'].lower() == 'ios': address = f'{ip}/24,172.20.10.1' route = '172.20.10.0/24,172.20.10.1' file = f'''