diff --git a/module.info b/module.info index e669fdb..61ba8ed 100644 --- a/module.info +++ b/module.info @@ -1,6 +1,6 @@ desc=Nginx Webserver SSL category=servers -version=1.14 +version=1.15 readonly=1 depends=virtualmin-nginx virtual-server hidden=1 diff --git a/virtual_feature.pl b/virtual_feature.pl index f6e733f..8fafca6 100644 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -218,7 +218,7 @@ sub feature_setup } my @sslopts = ( 'ssl' ); push(@sslopts, "http2") if ($virtualmin_nginx::config{'http2'}); -if ($virtualmin_nginx::config{'listen_mode'}) { +if ($virtualmin_nginx::config{'listen_mode'} eq '0') { # Listen on all IPs if (!$old_ip4 && !$old_ip6) { push(@listen, { 'name' => 'listen', @@ -491,7 +491,7 @@ sub feature_validate $l =~ /^\Q$d->{'ip'}\E:(\d+)$/ && $d->{'web_sslport'} == $1); $found++ if ($l eq $d->{'web_sslport'} && - $virtualmin_nginx::config{'listen_mode'}); + $virtualmin_nginx::config{'listen_mode'} eq '0'); } $found || return &virtualmin_nginx::text('feat_evalidateip', $d->{'ip'}, $d->{'web_sslport'}); @@ -503,7 +503,7 @@ sub feature_validate $l =~ /^\[\Q$d->{'ip6'}\E\]:(\d+)$/ && $d->{'web_sslport'} == $1); $found6++ if ($l eq $d->{'web_sslport'} && - $virtualmin_nginx::config{'listen_mode'}); + $virtualmin_nginx::config{'listen_mode'} eq '0'); } $found6 || return &virtualmin_nginx::text('feat_evalidateip6', $d->{'ip6'}, $d->{'web_sslport'});