This commit is contained in:
Andras Bacsai
2022-11-02 16:03:27 +01:00
parent 99ff020f56
commit a22f26c4c8
4 changed files with 11 additions and 7 deletions

View File

@@ -409,7 +409,7 @@ export async function traefikConfiguration(request, reply) {
}
}
} else {
if (found.services[oneService].ports) {
if (found.services[oneService].ports && found.services[oneService].ports.length > 0) {
let port = found.services[oneService].ports[0]
const foundPortVariable = serviceSetting.find((a) => a.name.toLowerCase() === 'port')
if (foundPortVariable) {