Skip to content

Commit

Permalink
Only add default_server if IPv6 address is private virtualmin/virtual…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Oct 9, 2021
1 parent f8a1cc8 commit aace831
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,9 @@ sub feature_setup
@sslopts ] });
}
if (!$old_ip6 && $d->{'ip6'}) {
push(@sslopts, &virtualmin_nginx::get_default_server_param());
if ($d->{'virt6'}) {
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 aace831

Please sign in to comment.