mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-09 12:16:36 +00:00
Clean up unused
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { Request, Response, NextFunction } from "express";
|
import { Request, Response, NextFunction } from "express";
|
||||||
import { DrizzleError, eq } from "drizzle-orm";
|
import { eq } from "drizzle-orm";
|
||||||
import { sites, resources, targets, exitNodes } from "@server/db";
|
import { sites, } from "@server/db";
|
||||||
import { db } from "@server/db";
|
import { db } from "@server/db";
|
||||||
import logger from "@server/logger";
|
import logger from "@server/logger";
|
||||||
import createHttpError from "http-errors";
|
import createHttpError from "http-errors";
|
||||||
@@ -86,9 +86,3 @@ export const receiveBandwidth = async (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function calculateSubnet(index: number): string {
|
|
||||||
const baseIp = 10 << 24;
|
|
||||||
const subnetSize = 16;
|
|
||||||
return `${(baseIp | (index * subnetSize)).toString()}/28`;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user