Skip to content

Commit 700d908

Browse files
author
xialj
committed
varible listen_ports should be in case which nice_host_type is proxy_host
1 parent 7f2552d commit 700d908

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/internal/nginx.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ const internalNginx = {
233233
// Set the IPv6 setting for the host
234234
host.ipv6 = internalNginx.ipv6Enabled();
235235

236-
let listen_ports = [];
236+
237237
if ( nice_host_type === 'proxy_host' ) {
238+
let listen_ports = [];
238239
host.domain_names.map(function (domain_name) {
239240
if ( domain_name.indexOf(":") > 0 ){
240241
listen_ports.push(parseInt(domain_name.substring(domain_name.indexOf(":")+1)));

0 commit comments

Comments
 (0)