| 1015 | let useIPv6 = (enableIPv6 === true); | 1015 | let useIPv6 = (enableIPv6 === true); |
| 1016 | let useIPv4 = (enableIPv4 === true); | 1016 | let useIPv4 = (enableIPv4 === true); |
| 1017 | | 1017 | |
| 1018 | let /** @type {boolean} */ hasIPv6, | 1018 | let hasIPv6 = false, |
| 1019 | /** @type {boolean} */ hasIPv4, | 1019 | hasIPv4 = false, |
| 1020 | /** @type {boolean} */ hasIPv6Local, | 1020 | hasIPv6Local = false, |
| 1021 | /** @type {boolean} */ hasIPv4Local, | 1021 | hasIPv4Local = false, |
| 1022 | /** @type {boolean} */ hasIPv6Any, | 1022 | hasIPv6Any = false, |
| 1023 | /** @type {boolean} */ hasIPv4Any; | 1023 | hasIPv4Any = false; |
| 1024 | | 1024 | |
| 1025 | | 1025 | |
| 1026 | if (enableIPv6 === 'auto' || enableIPv4 === 'auto') { | 1026 | if (enableIPv6 === 'auto' || enableIPv4 === 'auto') { |