mirror of
https://github.com/fosrl/pangolin.git
synced 2025-06-23 21:58:50 +02:00
Clean up unused
This commit is contained in:
parent
4593edbb45
commit
ab843b1a43
1 changed files with 3 additions and 9 deletions
|
@ -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`;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue