possibly fix collision if a disabled service port matches a different service that is enabled with the same port

This commit is contained in:
zefie
2025-02-19 19:17:03 -05:00
parent ee7284e521
commit 7a476b7796

View File

@@ -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;
}
})