Skip to content

Commit

Permalink
Respect the template-level HTTP2 option
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Nov 28, 2021
1 parent dbc9992 commit 6cdfc77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ sub feature_setup
"[".$d->{'ip6'}."]:".$d->{'web_sslport'} } @listen;
}
my @sslopts = ( 'ssl' );
push(@sslopts, "http2") if ($virtualmin_nginx::config{'http2'});
push(@sslopts, "http2") if ($virtualmin_nginx::config{'http2'} ||
$tmpl->{'web_http2'});
if ($virtualmin_nginx::config{'listen_mode'} eq '0') {
# Listen on all IPs
if (!$old_ip4 && !$old_ip6) {
Expand Down

0 comments on commit 6cdfc77

Please sign in to comment.