Clean-uo blank lines
| @@ -396,7 +396,6 @@ function getSessionCookieAge() { | ||
| 396 | 396 | return undefined; |
| 397 | 397 | } |
| 398 | 398 | |
| 399 | - | |
| 400 | 399 | /** |
| 401 | 400 | * Checks the network interfaces to determine the presence of IPv6 and IPv4 addresses. |
| 402 | 401 | * |
| @@ -796,7 +795,6 @@ async function getAutorunHostname(useIPv6, useIPv4) { | ||
| 796 | 795 | } |
| 797 | 796 | } |
| 798 | 797 | |
| 799 | - | |
| 800 | 798 | return autorunHostname; |
| 801 | 799 | } |
| 802 | 800 | |
| @@ -1034,11 +1032,9 @@ async function startServer() { | ||
| 1034 | 1032 | hasIPv6Any = false, |
| 1035 | 1033 | hasIPv4Any = false; |
| 1036 | 1034 | |
| 1037 | - | |
| 1038 | 1035 | if (enableIPv6 === 'auto' || enableIPv4 === 'auto') { |
| 1039 | 1036 | [hasIPv6Any, hasIPv4Any, hasIPv6Local, hasIPv4Local] = await getHasIP(); |
| 1040 | 1037 | |
| 1041 | - | |
| 1042 | 1038 | hasIPv6 = listen ? hasIPv6Any : hasIPv6Local; |
| 1043 | 1039 | if (enableIPv6 === 'auto') { |
| 1044 | 1040 | useIPv6 = hasIPv6; |
| @@ -1051,7 +1047,6 @@ async function startServer() { | ||
| 1051 | 1047 | } |
| 1052 | 1048 | } |
| 1053 | 1049 | |
| 1054 | - | |
| 1055 | 1050 | hasIPv4 = listen ? hasIPv4Any : hasIPv4Local; |
| 1056 | 1051 | if (enableIPv4 === 'auto') { |
| 1057 | 1052 | useIPv4 = hasIPv4; |
| @@ -1064,7 +1059,6 @@ async function startServer() { | ||
| 1064 | 1059 | } |
| 1065 | 1060 | } |
| 1066 | 1061 | |
| 1067 | - | |
| 1068 | 1062 | if (enableIPv6 === 'auto' && enableIPv4 === 'auto') { |
| 1069 | 1063 | if (!hasIPv6 && !hasIPv4) { |
| 1070 | 1064 | console.error('Both IPv6 and IPv4 are not detected'); |
| @@ -1076,19 +1070,13 @@ async function startServer() { | ||
| 1076 | 1070 | console.log('Neither protocol: ipv6, nor ipv4 are set to auto, skipping detection'); |
| 1077 | 1071 | } |
| 1078 | 1072 | |
| 1079 | - | |
| 1080 | - | |
| 1081 | - | |
| 1082 | 1073 | if (!useIPv6 && !useIPv4) { |
| 1083 | 1074 | 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'); |
| 1084 | 1075 | process.exit(1); |
| 1085 | 1076 | } |
| 1086 | 1077 | |
| 1087 | - | |
| 1088 | 1078 | const [v6Failed, v4Failed] = await startHTTPorHTTPS(useIPv6, useIPv4); |
| 1089 | - | |
| 1090 | 1079 | handleServerListenFail(v6Failed, v4Failed, useIPv6, useIPv4); |
| 1091 | - | |
| 1092 | 1080 | postSetupTasks(v6Failed, v4Failed, useIPv6, useIPv4); |
| 1093 | 1081 | } |
| 1094 | 1082 | |