Fix: Allow lower MTU (#2228)

allow lower mtu
This commit is contained in:
Bernd Storath
2025-10-21 11:38:39 +02:00
committed by GitHub
parent 2b42b639ea
commit 99f1a004d5
+2 -1
View File
@@ -22,7 +22,8 @@ export const EnabledSchema = z.boolean({ message: t('zod.enabled') });
export const MtuSchema = z export const MtuSchema = z
.number({ message: t('zod.mtu') }) .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') }); .max(9000, { message: t('zod.mtu') });
export const PortSchema = z export const PortSchema = z