changed settings value error to just set to auto
| @@ -264,8 +264,8 @@ const enableAccounts = getConfigValue('enableUserAccounts', DEFAULT_ACCOUNTS); | |||
| 264 | const uploadsPath = path.join(dataRoot, UPLOADS_DIRECTORY); | 264 | const uploadsPath = path.join(dataRoot, UPLOADS_DIRECTORY); |
| 265 | 265 | ||
| 266 | 266 | ||
| 267 | const enableIPv6 = stringToBool(cliArguments.enableIPv6) ?? getConfigValue('protocol.ipv6', DEFAULT_ENABLE_IPV6); | 267 | let enableIPv6 = stringToBool(cliArguments.enableIPv6) ?? getConfigValue('protocol.ipv6', DEFAULT_ENABLE_IPV6); |
| 268 | const enableIPv4 = stringToBool(cliArguments.enableIPv4) ?? getConfigValue('protocol.ipv4', DEFAULT_ENABLE_IPV4); | 268 | let enableIPv4 = stringToBool(cliArguments.enableIPv4) ?? getConfigValue('protocol.ipv4', DEFAULT_ENABLE_IPV4); |
| 269 | 269 | ||
| 270 | const autorunHostname = cliArguments.autorunHostname ?? getConfigValue('autorunHostname', DEFAULT_AUTORUN_HOSTNAME); | 270 | const autorunHostname = cliArguments.autorunHostname ?? getConfigValue('autorunHostname', DEFAULT_AUTORUN_HOSTNAME); |
| 271 | const autorunPortOverride = cliArguments.autorunPortOverride ?? getConfigValue('autorunPortOverride', DEFAULT_AUTORUN_PORT); | 271 | const autorunPortOverride = cliArguments.autorunPortOverride ?? getConfigValue('autorunPortOverride', DEFAULT_AUTORUN_PORT); |
| @@ -292,12 +292,12 @@ if (dnsPreferIPv6) { | |||
| 292 | const ipOptions = [true, 'auto', false]; | 292 | const ipOptions = [true, 'auto', false]; |
| 293 | 293 | ||
| 294 | if (!ipOptions.includes(enableIPv6)) { | 294 | if (!ipOptions.includes(enableIPv6)) { |
| 295 | console.error('`protocol: ipv6` option invalid\n use:', ipOptions); | 295 | console.warn('`protocol: ipv6` option invalid\n use:', ipOptions, "\n setting to: auto"); |
| 296 | process.exit(1); | 296 | enableIPv6 = 'auto'; |
| 297 | } | 297 | } |
| 298 | if (!ipOptions.includes(enableIPv4)) { | 298 | if (!ipOptions.includes(enableIPv4)) { |
| 299 | console.error('`protocol: ipv4` option invalid\n use:', ipOptions); | 299 | console.warn('`protocol: ipv4` option invalid\n use:', ipOptions, "\n setting to: auto"); |
| 300 | process.exit(1); | 300 | enableIPv4 = 'auto'; |
| 301 | } | 301 | } |
| 302 | 302 | ||
| 303 | if (enableIPv6 === false && enableIPv4 === false) { | 303 | if (enableIPv6 === false && enableIPv4 === false) { |