| 1028 | console.log('IPv4 support detected (but disabled)'); | 1034 | console.log('IPv4 support detected (but disabled)'); |
| 1029 | } | 1035 | } |
| 1030 | } | 1036 | } |
| | 1037 | |
| | 1038 | |
| | 1039 | if (enableIPv6 === 'auto' && enableIPv4 === 'auto') { |
| | 1040 | if (!hasIPv6 && !hasIPv4) { |
| | 1041 | console.error('Both IPv6 and IPv4 are not detected'); |
| | 1042 | process.exit(1); |
| | 1043 | } |
| | 1044 | } |
| | 1045 | |
| 1031 | } else { | 1046 | } else { |
| 1032 | console.log('Neither protocol: ipv6, nor ipv4 are set to auto, skipping detection'); | 1047 | console.log('Neither protocol: ipv6, nor ipv4 are set to auto, skipping detection'); |
| 1033 | } | 1048 | } |
| 1034 | | 1049 | |
| 1035 | | 1050 | |
| 1036 | | 1051 | |
| 1037 | if (enableIPv6 === 'auto' && enableIPv4 === 'auto') { | | |
| 1038 | if (!hasIPv6 && !hasIPv4) { | | |
| 1039 | console.error('Both IPv6 and IPv4 are not detected'); | | |
| 1040 | process.exit(1); | | |
| 1041 | } | | |
| 1042 | } | | |
| 1043 | | 1052 | |
| 1044 | if (!useIPv6 && !useIPv4) { | 1053 | if (!useIPv6 && !useIPv4) { |
| 1045 | console.error('Both IPv6 and IPv4 are disabled,\nP.S. you should never see this error, at least at one point it was checked for before this, with the rest of the config options'); | 1054 | console.error('Both IPv6 and IPv4 are disabled,\nP.S. you should never see this error, at least at one point it was checked for before this, with the rest of the config options'); |