mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-04-27 09:32:29 +00:00
bugfix when create a proxy-host.conf can with more ports
This commit is contained in:
parent
4ebfb4247c
commit
dec0ff31eb
@ -234,7 +234,7 @@ const internalNginx = {
|
|||||||
host.ipv6 = internalNginx.ipv6Enabled();
|
host.ipv6 = internalNginx.ipv6Enabled();
|
||||||
|
|
||||||
let listen_ports = [];
|
let listen_ports = [];
|
||||||
|
if(nice_host_type === 'proxy_host'){
|
||||||
host.domain_names.map(function (domain_name) {
|
host.domain_names.map(function (domain_name) {
|
||||||
if ( domain_name.indexOf(":") > 0 ){
|
if ( domain_name.indexOf(":") > 0 ){
|
||||||
listen_ports.push(parseInt(domain_name.substring(domain_name.indexOf(":")+1)));
|
listen_ports.push(parseInt(domain_name.substring(domain_name.indexOf(":")+1)));
|
||||||
@ -243,6 +243,7 @@ const internalNginx = {
|
|||||||
if ( listen_ports.length > 0 ){
|
if ( listen_ports.length > 0 ){
|
||||||
host.listen_ports = listen_ports;
|
host.listen_ports = listen_ports;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
locationsPromise.then(() => {
|
locationsPromise.then(() => {
|
||||||
renderEngine
|
renderEngine
|
||||||
|
Loading…
x
Reference in New Issue
Block a user