Skip to content

Commit

Permalink
use isOwnedNetworks in create service instead of checking names. this…
Browse files Browse the repository at this point in the history
… way ids are supported in service creates
  • Loading branch information
s4ke committed Oct 15, 2024
1 parent 1cb5759 commit c537b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swarmgate/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ export function setupRoutes(tenantLabelValue: string) {

if (taskTemplate.Networks) {
for (const network of taskTemplate.Networks) {
if (SERVICE_ALLOW_LISTED_NETWORKS.includes(network.Target)) {
if (await isOwnedNetwork(network.Target, true)) {
// explicitly allowed. Example: Traefik Ingress network
continue;
}
Expand Down

0 comments on commit c537b23

Please sign in to comment.