mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
internet-connection.py:
change position of the label Signed-off-by: Jeroen Oudshoorn <oudshoorn.jeroen@gmail.com>
This commit is contained in:
@ -44,10 +44,10 @@ class InternetConnectionPlugin(plugins.Plugin):
|
||||
# Connect to the host - tells us if the host is actually reachable
|
||||
s = socket.create_connection((host, 80), 2)
|
||||
s.close()
|
||||
ui.set('connection_status', 'C')
|
||||
ui.set('connection_status', '✓')
|
||||
except:
|
||||
# if the command failed, it means there is no active Internet connection
|
||||
ui.set('connection_status', 'D')
|
||||
ui.set('connection_status', '✗')
|
||||
|
||||
def on_unload(self, ui):
|
||||
with ui._lock:
|
||||
|
Reference in New Issue
Block a user