mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
fix some bugs
This commit is contained in:
@ -499,8 +499,7 @@ class WebConfig(plugins.Plugin):
|
||||
elif request.method == "POST":
|
||||
if path == "save-config":
|
||||
try:
|
||||
parsed_toml = json.loads(request.get_json())
|
||||
save_config(parsed_toml, '/etc/pwnagotchi/config.toml')
|
||||
save_config(request.get_json(), '/etc/pwnagotchi/config.toml')
|
||||
_thread.start_new_thread(restart, (self.mode,))
|
||||
return "success"
|
||||
except Exception as ex:
|
||||
|
Reference in New Issue
Block a user