varible listen_ports should be in case which nice_host_type is proxy_host

This commit is contained in:
xialj 2023-08-01 00:04:11 +08:00
parent 7f2552d77f
commit 700d908abd

View File

@ -233,8 +233,9 @@ const internalNginx = {
// Set the IPv6 setting for the host
host.ipv6 = internalNginx.ipv6Enabled();
let listen_ports = [];
if ( nice_host_type === 'proxy_host' ) {
let listen_ports = [];
host.domain_names.map(function (domain_name) {
if ( domain_name.indexOf(":") > 0 ){
listen_ports.push(parseInt(domain_name.substring(domain_name.indexOf(":")+1)));