Check if we get IPv6 when enabling

This commit is contained in:
Girish Ramakrishnan
2022-02-04 11:15:53 -08:00
parent 5c56cdfbc7
commit 3b3b510343
2 changed files with 3 additions and 3 deletions
+1
View File
@@ -378,6 +378,7 @@ async function getIPv6Config() {
async function setIPv6Config(enabled) {
assert.strictEqual(typeof enabled, 'boolean');
if (enabled) await sysinfo.getServerIPv6();
await set(exports.IPV6_KEY, enabled ? 'enabled' : ''); // db holds string values only
notifyChange(exports.IPV6_KEY, enabled);
}