diff --git a/src/app.py b/src/app.py index 44d35bc..553f1e6 100644 --- a/src/app.py +++ b/src/app.py @@ -49,7 +49,7 @@ def safe(): # Reboot router app.logger.info('Rebooting router') - status = reboot(url, path, username, password).text + status = reboot(username, password, username, password).text if '{"status":true}' not in status: app.logger.error('Reboot failed') @@ -61,7 +61,7 @@ def safe(): @app.route('/force', methods=['POST']) def force(): app.logger.info('Initializing force reboot process') - status = reboot(url, path, username, password).text + status = reboot(username, password, url, path).text if '{"status":true}' not in status: app.logger.error('Reboot failed')