diff --git a/CHANGELOG.md b/CHANGELOG.md
index 63f15db..64eab88 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
+| 4.23.6 | 2020-04-25 | `networkGatewayDefault()` bug fix no interfaces |
| 4.23.5 | 2020-04-20 | updated docs |
| 4.23.4 | 2020-04-20 | `users()` optimized parseDateTime function |
| 4.23.3 | 2020-04-09 | recactored to avoid `cat` |
diff --git a/docs/history.html b/docs/history.html
index ecde48f..e6899a3 100644
--- a/docs/history.html
+++ b/docs/history.html
@@ -83,6 +83,11 @@
+
+ | 4.23.4 |
+ 2020-04-20 |
+ networkGatewayDefault() bugfix no interfaces |
+
| 4.23.5 |
2020-20-04 |
diff --git a/docs/index.html b/docs/index.html
index 7d2445c..22b77d5 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -168,7 +168,7 @@
systeminformation
- Current Version: 4.23.5
+ Current Version: 4.23.6
@@ -207,7 +207,7 @@
Downloads last month
diff --git a/lib/network.js b/lib/network.js
index e5a69ce..e2f8e1d 100644
--- a/lib/network.js
+++ b/lib/network.js
@@ -1404,6 +1404,11 @@ function networkGatewayDefault(callback) {
callback(result);
}
resolve(result);
+ } else {
+ if (callback) {
+ callback(result);
+ }
+ resolve(result);
}
});
} catch (e) {
@@ -1422,6 +1427,11 @@ function networkGatewayDefault(callback) {
callback(result);
}
resolve(result);
+ } else {
+ if (callback) {
+ callback(result);
+ }
+ resolve(result);
}
});
} catch (e) {
diff --git a/lib/util.js b/lib/util.js
index 57524e3..9e19701 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -161,7 +161,6 @@ function parseDateTime(dt, culture) {
};
culture = culture || {};
let dateFormat = (culture.dateFormat || '').toLowerCase();
- let timeFormat = (culture.timeFormat || '');
let pmDesignator = (culture.pmDesignator || '');
const parts = dt.split(' ');