@@ -22,7 +22,8 @@ export const EnabledSchema = z.boolean({ message: t('zod.enabled') });
|
||||
|
||||
export const MtuSchema = z
|
||||
.number({ message: t('zod.mtu') })
|
||||
.min(1280, { message: t('zod.mtu') })
|
||||
// min for IPv6 is 1280, but we allow lower for IPv4
|
||||
.min(1024, { message: t('zod.mtu') })
|
||||
.max(9000, { message: t('zod.mtu') });
|
||||
|
||||
export const PortSchema = z
|
||||
|
||||
Reference in New Issue
Block a user