| @@ -795,14 +795,6 @@ const preSetupTasks = async function () { | ||
| 795 | 795 | */ |
| 796 | 796 | async function getAutorunHostname(useIPv6, useIPv4) { |
| 797 | 797 | if (autorunHostname === 'auto') { |
| 798 | - if (listen) { | |
| 799 | - if (ipRegex.v6({ exact: true }).test(listenAddressIPv6)) { | |
| 800 | - return listenAddressIPv6; | |
| 801 | - } else if (ipRegex.v4({ exact: true }).test(listenAddressIPv4)) { | |
| 802 | - return listenAddressIPv4; | |
| 803 | - } | |
| 804 | - } | |
| 805 | - | |
| 806 | 798 | let localhostResolve = await canResolve('localhost', useIPv6, useIPv4); |
| 807 | 799 | |
| 808 | 800 | if (useIPv6 && useIPv4) { |