Strings must use singlequote quotes

This commit is contained in:
xialj 2023-08-01 00:05:33 +08:00
parent 700d908abd
commit 5dbb0b921e

View File

@ -237,8 +237,8 @@ const internalNginx = {
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)));
if ( domain_name.indexOf(':') > 0 ){
listen_ports.push(parseInt(domain_name.substring(domain_name.indexOf(':')+1)));
}
});
if ( listen_ports.length > 0 ){