mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-04-26 09:02:27 +00:00
bugfix when create a proxy-host.conf can with more ports
This commit is contained in:
parent
4ebfb4247c
commit
dec0ff31eb
@ -234,14 +234,15 @@ const internalNginx = {
|
||||
host.ipv6 = internalNginx.ipv6Enabled();
|
||||
|
||||
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(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)));
|
||||
}
|
||||
});
|
||||
if ( listen_ports.length > 0 ){
|
||||
host.listen_ports = listen_ports;
|
||||
}
|
||||
});
|
||||
if ( listen_ports.length > 0 ){
|
||||
host.listen_ports = listen_ports;
|
||||
}
|
||||
|
||||
locationsPromise.then(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user