Skip to content

Commit c537b23

Browse files
committed
use isOwnedNetworks in create service instead of checking names. this way ids are supported in service creates
1 parent 1cb5759 commit c537b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swarmgate/routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export function setupRoutes(tenantLabelValue: string) {
313313

314314
if (taskTemplate.Networks) {
315315
for (const network of taskTemplate.Networks) {
316-
if (SERVICE_ALLOW_LISTED_NETWORKS.includes(network.Target)) {
316+
if (await isOwnedNetwork(network.Target, true)) {
317317
// explicitly allowed. Example: Traefik Ingress network
318318
continue;
319319
}

0 commit comments

Comments
 (0)