diff --git a/CHANGELOG.md b/CHANGELOG.md index bee32e7..ecb4947 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# v0.4.4 + +Released 2023-07-21 + +- proper `timeout` setting for `ip` calls + # v0.4.3 Released 2023-07-21 diff --git a/lib/ip.js b/lib/ip.js index 95735c4..1ba7358 100644 --- a/lib/ip.js +++ b/lib/ip.js @@ -1,6 +1,6 @@ const cp = require('child_process'); -const DEFAULT_TIMEOUT = 30; +const DEFAULT_TIMEOUT = 10; class IpCommand { constructor(options = {}) { @@ -190,7 +190,7 @@ class IpCommand { exec(args, options = {}) { if (!('timeout' in options)) { - options.timeout = DEFAULT_TIMEOUT; + options.timeout = DEFAULT_TIMEOUT * 1000; } const ip = this; @@ -261,8 +261,6 @@ class IpCommand { const result = { stdout, stderr, - timeout: false, - command: `${command} ${args.join(' ')}`, error };