| 289 | 289 | const ipOptions = [true, 'auto', false]; |
| 290 | 290 | |
| 291 | 291 | if (!ipOptions.includes(enableIPv6)) { |
| 292 | 292 | console.warn(color.red('`protocol: ipv6` option invalid'), '\n use:', ipOptions, '\n setting to: auto', DEFAULT_ENABLE_IPV6); |
| 293 | 293 | enableIPv6 = 'auto'DEFAULT_ENABLE_IPV6; |
| 294 | 294 | } |
| 295 | 295 | if (!ipOptions.includes(enableIPv4)) { |
| 296 | 296 | console.warn(color.red('`protocol: ipv4` option invalid'), '\n use:', ipOptions, '\n setting to: auto', DEFAULT_ENABLE_IPV4); |
| 297 | 297 | enableIPv4 = 'auto'DEFAULT_ENABLE_IPV4; |
| 298 | 298 | } |
| 299 | 299 | |
| 300 | 300 | if (enableIPv6 === false && enableIPv4 === false) { |