Fix on_handshake, whole plugin should work now

Add the else: so if the ip is set in the options the plugin actually works.
This commit is contained in:
Arttumiro 2019-11-14 22:29:43 +02:00 committed by GitHub
parent 8965ad9272
commit 6e1490da78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@ class PawGPS(plugins.Plugin):
def on_handshake(self, agent, filename, access_point, client_station):
if 'ip' not in self.options or ('ip' in self.options and self.options['ip'] is None):
ip = "192.168.44.1:8080"
else:
ip = self.options['ip]
gps = requests.get('http://' + ip + '/gps.xhtml')
gps_filename = filename.replace('.pcap', '.gps.json')