diff --git a/package.json b/package.json index e1d16d5..dad3f73 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "pfsense-actions", "displayName": "pfSense® Actions", - "version": "1.1.0", + "version": "1.1.1", "description": "A controller that allows a network administrator to run simple actions such as Wake-on-LAN and reload firewall filters", "main": "./build/index.js", "exports": "./build/index.js", diff --git a/src/index.ts b/src/index.ts index e6dfd00..5132976 100644 --- a/src/index.ts +++ b/src/index.ts @@ -292,9 +292,9 @@ class Server { await instance.login(); - // Pings the device 3 times (5 tries each) until it gives up. - for (let i = 1; i <= 3; i += 1) { - const pingResponse = await instance.ping(ipAddress, 5); + // Pings the device 10 times (2 tries each) until it gives up. + for (let i = 1; i <= 10; i += 1) { + const pingResponse = await instance.ping(ipAddress, 2); console.log(JSON.stringify(pingResponse));