do not check if we have ipv6 to enable ipv6

This commit is contained in:
Girish Ramakrishnan
2022-02-15 11:57:27 -08:00
parent 125325721f
commit f8b124caa6
+2 -1
View File
@@ -378,7 +378,8 @@ async function getIPv6Config() {
async function setIPv6Config(enabled) {
assert.strictEqual(typeof enabled, 'boolean');
if (enabled) await sysinfo.getServerIPv6();
// we don't validate if server has IPv6 intentionally. our api server could be down, maybe user assigns
// ipv6 later, fixed/static address is not defined yet etc
await set(exports.IPV6_KEY, enabled ? 'enabled' : ''); // db holds string values only
notifyChange(exports.IPV6_KEY, enabled);
}