From 2e9d06eee26cfe9e26226a5401818f1996565a8b Mon Sep 17 00:00:00 2001 From: "Mohammad Ansil :)" <146548918+MasterOfBrokenLogic@users.noreply.github.com> Date: Sun, 28 Jul 2024 15:47:42 +0530 Subject: [PATCH] Fix async/await issue in IPReset --- index.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index ae02754..b954ffc 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,11 @@ const IPReset = require('./src'); -const ipr = new IPReset('platform-tools\adb.exe',1000); -(() => { - await ipr.reset(); - console.log('Your IP Address has been changed!') -})(); \ No newline at end of file +const ipr = new IPReset('platform-tools\\adb.exe', 1000); + +(async () => { + try { + await ipr.reset(); + console.log('Your IP Address has been changed!'); + } catch (error) { + console.error('Failed to change IP address:', error); + } +})();