Check for lowercase android/ios

Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
Jeroen Oudshoorn
2024-12-21 01:09:22 +01:00
parent 2cd564137d
commit 3c07d6860e

View File

@ -21,10 +21,10 @@ class BTTether(plugins.Plugin):
def on_ready(self, agent): def on_ready(self, agent):
ip = self.options['ip'] ip = self.options['ip']
if self.options['phone'] == 'android': if self.options['phone'].lower() == 'android':
address = f'{ip}/24,192.168.44.1' address = f'{ip}/24,192.168.44.1'
route = '192.168.44.0/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' address = f'{ip}/24,172.20.10.1'
route = '172.20.10.0/24,172.20.10.1' route = '172.20.10.0/24,172.20.10.1'
file = f''' file = f'''