mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-30 21:00:00 +00:00
Disable icmp packets over private resources
This commit is contained in:
parent
6072ee93fa
commit
3d5ae9dd5c
10 changed files with 98 additions and 16 deletions
|
|
@ -47,7 +47,8 @@ const createSiteResourceSchema = z
|
|||
roleIds: z.array(z.int()),
|
||||
clientIds: z.array(z.int()),
|
||||
tcpPortRangeString: portRangeStringSchema,
|
||||
udpPortRangeString: portRangeStringSchema
|
||||
udpPortRangeString: portRangeStringSchema,
|
||||
disableIcmp: z.boolean().optional()
|
||||
})
|
||||
.strict()
|
||||
.refine(
|
||||
|
|
@ -158,7 +159,8 @@ export async function createSiteResource(
|
|||
roleIds,
|
||||
clientIds,
|
||||
tcpPortRangeString,
|
||||
udpPortRangeString
|
||||
udpPortRangeString,
|
||||
disableIcmp
|
||||
} = parsedBody.data;
|
||||
|
||||
// Verify the site exists and belongs to the org
|
||||
|
|
@ -245,7 +247,8 @@ export async function createSiteResource(
|
|||
alias,
|
||||
aliasAddress,
|
||||
tcpPortRangeString,
|
||||
udpPortRangeString
|
||||
udpPortRangeString,
|
||||
disableIcmp
|
||||
})
|
||||
.returning();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue