mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 15:09:39 +02:00
Newt working
This commit is contained in:
parent
f9e0c33368
commit
0670d48ac7
7 changed files with 112 additions and 53 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue