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