diff --git a/virtual_feature.pl b/virtual_feature.pl index af8e924..59c8cf0 100644 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -156,12 +156,11 @@ sub feature_setup 'words' => [ &domain_server_names($d) ] }); # Add listen on the correct IP and port - my @h2 = $config{'http2'} ? ( "http2" ) : ( ); if ($config{'listen_mode'}) { # Just use port numbers push(@{$server->{'members'}}, { 'name' => 'listen', - 'words' => [ $d->{'web_port'}, @h2 ] }); + 'words' => [ $d->{'web_port'} ] }); } else { # Use IP and port @@ -169,13 +168,12 @@ sub feature_setup : ':'.$d->{'web_port'}; push(@{$server->{'members'}}, { 'name' => 'listen', - 'words' => [ $d->{'ip'}.$portstr, @h2 ] }); + 'words' => [ $d->{'ip'}.$portstr ] }); if ($d->{'ip6'}) { push(@{$server->{'members'}}, { 'name' => 'listen', 'words' => [ '['.$d->{'ip6'}.']'.$portstr, - $d->{'virt6'} ? ( 'default' ) : ( ), - @h2 ] }); + $d->{'virt6'} ? ( 'default' ) : ( ) ] }); } }