added better error reporting
| @@ -284,11 +284,11 @@ if (dnsPreferIPv6) { | ||
| 284 | 284 | const ipOptions = ['enabled', 'auto', 'disabled']; |
| 285 | 285 | |
| 286 | 286 | if (!ipOptions.includes(enableIPv6)) { |
| 287 | 287 | console.error('`protocol: ipv6` option invalid\n use:', ipOptions); |
| 288 | 288 | process.exit(1); |
| 289 | 289 | } |
| 290 | 290 | if (!ipOptions.includes(enableIPv4)) { |
| 291 | 291 | console.error('`protocol: ipv4` option invalid\n use:', ipOptions); |
| 292 | 292 | process.exit(1); |
| 293 | 293 | } |
| 294 | 294 | |