Skip to content

Commit

Permalink
Don't use default where not strictly needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Sep 10, 2021
1 parent 06751ff commit a89a032
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,7 @@ sub feature_setup
($old_ip6) = grep { $_->{'words'}->[0] eq
"[".$d->{'ip6'}."]:".$d->{'web_sslport'} } @listen;
}
my @sslopts;
if (!&find_listen_clash($d->{'ip'}, $d->{'web_sslport'})) {
push(@sslopts, 'default', 'ssl');
}
else {
push(@sslopts, 'ssl');
}
my @sslopts = ( 'ssl' );
push(@sslopts, "http2") if ($virtualmin_nginx::config{'http2'});
if ($virtualmin_nginx::config{'listen_mode'}) {
# Listen on all IPs
Expand All @@ -240,6 +234,7 @@ sub feature_setup
@sslopts ] });
}
if (!$old_ip6 && $d->{'ip6'}) {
push(@sslopts, &virtualmin_nginx::get_default_server_param());
push(@listen, { 'name' => 'listen',
'words' => [ "[".$d->{'ip6'}."]:".$d->{'web_sslport'},
@sslopts ]});
Expand Down

0 comments on commit a89a032

Please sign in to comment.