Change order of when http/2 is enabled
parent
8245ac8b12
commit
3c6c1ae562
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue