mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-28 14:44:55 +02:00
Handle port correctly
This commit is contained in:
parent
a57d32d05d
commit
757d628bc8
3 changed files with 30 additions and 1 deletions
|
@ -12,6 +12,7 @@ import {
|
|||
} from "@server/lib/consts";
|
||||
import { passwordSchema } from "@server/auth/passwordSchema";
|
||||
import stoi from "./stoi";
|
||||
import { start } from "repl";
|
||||
|
||||
const portSchema = z.number().positive().gt(0).lte(65535);
|
||||
const hostnameSchema = z
|
||||
|
@ -112,6 +113,7 @@ const configSchema = z.object({
|
|||
wg_site: z.object({
|
||||
block_size: z.number().positive().gt(0),
|
||||
subnet_group: z.string(),
|
||||
start_port: portSchema
|
||||
}),
|
||||
rate_limits: z.object({
|
||||
global: z.object({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue