mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 09:46:40 +00:00
Allow anything for the ip
This commit is contained in:
@@ -64,7 +64,7 @@ import {
|
||||
import { SwitchInput } from "@app/components/SwitchInput";
|
||||
|
||||
const addTargetSchema = z.object({
|
||||
ip: z.union([z.string().ip(), z.literal("localhost")]),
|
||||
ip: z.string(),
|
||||
method: z.string(),
|
||||
port: z.coerce.number().int().positive()
|
||||
// protocol: z.string(),
|
||||
@@ -179,7 +179,7 @@ export default function ReverseProxyTargets(props: {
|
||||
// make sure that the target IP is within the site subnet
|
||||
const targetIp = data.ip;
|
||||
const subnet = site.subnet;
|
||||
if (targetIp === "localhost" || !isIPInSubnet(targetIp, subnet)) {
|
||||
if (!isIPInSubnet(targetIp, subnet)) {
|
||||
toast({
|
||||
variant: "destructive",
|
||||
title: "Invalid target IP",
|
||||
|
||||
Reference in New Issue
Block a user