Bernd Storath
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
src/server/utils/types.ts
|
|
|
@ -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 |
|
|
|
|