mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 16:56:39 +00:00
Pass this middleware correctly in saas
This commit is contained in:
@@ -10,7 +10,7 @@ export async function verifyValidLicense(
|
|||||||
next: NextFunction
|
next: NextFunction
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
if (build !== "saas") {
|
if (build != "enterprise") {
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@ export async function createExitNode(
|
|||||||
endpoint: `${subEndpoint}${subEndpoint != "" ? "." : ""}${config.getRawConfig().gerbil.base_endpoint}`,
|
endpoint: `${subEndpoint}${subEndpoint != "" ? "." : ""}${config.getRawConfig().gerbil.base_endpoint}`,
|
||||||
address,
|
address,
|
||||||
listenPort,
|
listenPort,
|
||||||
|
online: true,
|
||||||
reachableAt,
|
reachableAt,
|
||||||
name: exitNodeName
|
name: exitNodeName
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export async function createExitNode(publicKey: string, reachableAt: string | un
|
|||||||
publicKey,
|
publicKey,
|
||||||
endpoint: `${subEndpoint}${subEndpoint != "" ? "." : ""}${config.getRawConfig().gerbil.base_endpoint}`,
|
endpoint: `${subEndpoint}${subEndpoint != "" ? "." : ""}${config.getRawConfig().gerbil.base_endpoint}`,
|
||||||
address,
|
address,
|
||||||
|
online: true,
|
||||||
listenPort,
|
listenPort,
|
||||||
reachableAt,
|
reachableAt,
|
||||||
name: exitNodeName
|
name: exitNodeName
|
||||||
|
|||||||
Reference in New Issue
Block a user