mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-04 09:46:40 +00:00
Newt working
This commit is contained in:
@@ -91,7 +91,7 @@ export async function createTarget(
|
||||
}
|
||||
|
||||
// make sure the target is within the site subnet
|
||||
if (!isIpInCidr(targetData.ip, site.subnet!)) {
|
||||
if (site.type == "wireguard" && !isIpInCidr(targetData.ip, site.subnet!)) {
|
||||
return next(
|
||||
createHttpError(
|
||||
HttpCode.BAD_REQUEST,
|
||||
|
||||
Reference in New Issue
Block a user