mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-12 02:47:46 +00:00
fix email and allow localhost in ip field
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import React from "react";
|
||||
|
||||
export default function ButtonLink({
|
||||
href,
|
||||
children,
|
||||
|
||||
@@ -65,7 +65,7 @@ import {
|
||||
import { SwitchInput } from "@app/components/SwitchInput";
|
||||
|
||||
const addTargetSchema = z.object({
|
||||
ip: z.string().ip(),
|
||||
ip: z.union([z.string().ip(), z.literal("localhost")]),
|
||||
method: z.string(),
|
||||
port: z.coerce.number().int().positive()
|
||||
// protocol: z.string(),
|
||||
|
||||
@@ -149,6 +149,7 @@ export default function GeneralForm() {
|
||||
<form
|
||||
onSubmit={form.handleSubmit(onSubmit)}
|
||||
className="space-y-4"
|
||||
id="general-settings-form"
|
||||
>
|
||||
<FormField
|
||||
control={form.control}
|
||||
|
||||
Reference in New Issue
Block a user