possibly fix collision if a disabled service port matches a different service that is enabled with the same port
This commit is contained in:
@@ -59,7 +59,7 @@ function getServiceByPort(port) {
|
||||
Object.keys(minisrv_config.services).forEach(function (k) {
|
||||
if (service_name) return;
|
||||
if (minisrv_config.services[k].port) {
|
||||
if (port == parseInt(minisrv_config.services[k].port))
|
||||
if (port == parseInt(minisrv_config.services[k].port) && getServiceEnabled(k))
|
||||
service_name = k;
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user