Change order of when http/2 is enabled

pull/456/head
Cyb3r-Jak3 2023-11-27 16:32:39 -05:00
parent 8245ac8b12
commit 3c6c1ae562
No known key found for this signature in database
1 changed files with 3 additions and 3 deletions

View File

@ -73,9 +73,6 @@ const httpsListen = (domain, global, ipPortPairs) => {
// HTTPS // HTTPS
config.push(['listen', `${ipPortV4} ssl${reusePortV4 ? ' reuseport' : ''}`]); config.push(['listen', `${ipPortV4} ssl${reusePortV4 ? ' reuseport' : ''}`]);
// HTTP/2
if (domain.https.http2.computed) config.push(['http2', 'on']);
// HTTP/3 // HTTP/3
if (domain.https.http3.computed) config.push(['listen', `${ipPortV4} http3`]); if (domain.https.http3.computed) config.push(['listen', `${ipPortV4} http3`]);
@ -93,6 +90,9 @@ const httpsListen = (domain, global, ipPortPairs) => {
if (domain.https.http3.computed) config.push(['listen', `${ipPortV6} http3`]); if (domain.https.http3.computed) config.push(['listen', `${ipPortV6} http3`]);
} }
// HTTP/2
if (domain.https.http2.computed) config.push(['http2', 'on']);
return config; return config;
}; };