formatting nginx.js

This commit is contained in:
xialj 2023-08-01 00:01:22 +08:00
parent bbeb4f5a60
commit 7f2552d77f

View File

@ -234,7 +234,7 @@ const internalNginx = {
host.ipv6 = internalNginx.ipv6Enabled();
let listen_ports = [];
if(nice_host_type === 'proxy_host'){
if ( nice_host_type === 'proxy_host' ) {
host.domain_names.map(function (domain_name) {
if ( domain_name.indexOf(":") > 0 ){
listen_ports.push(parseInt(domain_name.substring(domain_name.indexOf(":")+1)));