File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -234,14 +234,15 @@ const internalNginx = {
234
234
host . ipv6 = internalNginx . ipv6Enabled ( ) ;
235
235
236
236
let listen_ports = [ ] ;
237
-
238
- host . domain_names . map ( function ( domain_name ) {
239
- if ( domain_name . indexOf ( ":" ) > 0 ) {
240
- listen_ports . push ( parseInt ( domain_name . substring ( domain_name . indexOf ( ":" ) + 1 ) ) ) ;
237
+ if ( nice_host_type === 'proxy_host' ) {
238
+ host . domain_names . map ( function ( domain_name ) {
239
+ if ( domain_name . indexOf ( ":" ) > 0 ) {
240
+ listen_ports . push ( parseInt ( domain_name . substring ( domain_name . indexOf ( ":" ) + 1 ) ) ) ;
241
+ }
242
+ } ) ;
243
+ if ( listen_ports . length > 0 ) {
244
+ host . listen_ports = listen_ports ;
241
245
}
242
- } ) ;
243
- if ( listen_ports . length > 0 ) {
244
- host . listen_ports = listen_ports ;
245
246
}
246
247
247
248
locationsPromise . then ( ( ) => {
You can’t perform that action at this time.
0 commit comments