Skip to content

Commit

Permalink
Fix on_handshake, whole plugin should work now
Browse files Browse the repository at this point in the history
Add the else: so if the ip is set in the options the plugin actually works.
  • Loading branch information
Arttumiro authored Nov 14, 2019
1 parent 8965ad9 commit 6e1490d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pwnagotchi/plugins/default/paw-gps.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def on_loaded(self):
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')
Expand Down

0 comments on commit 6e1490d

Please sign in to comment.