mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-22 20:20:29 +02:00
Remove unused use_subdomain
This commit is contained in:
@@ -348,7 +348,6 @@ export const configSchema = z
|
|||||||
.optional()
|
.optional()
|
||||||
.pipe(z.string())
|
.pipe(z.string())
|
||||||
.transform((url) => url.toLowerCase()),
|
.transform((url) => url.toLowerCase()),
|
||||||
use_subdomain: z.boolean().optional().default(false),
|
|
||||||
subnet_group: z.string().optional().default("100.89.137.0/20"),
|
subnet_group: z.string().optional().default("100.89.137.0/20"),
|
||||||
block_size: z.number().positive().gt(0).optional().default(24),
|
block_size: z.number().positive().gt(0).optional().default(24),
|
||||||
site_block_size: z
|
site_block_size: z
|
||||||
|
|||||||
@@ -34,10 +34,6 @@ export async function createExitNode(
|
|||||||
// TODO: eventually we will want to get the next available port so that we can multiple exit nodes
|
// TODO: eventually we will want to get the next available port so that we can multiple exit nodes
|
||||||
// const listenPort = await getNextAvailablePort();
|
// const listenPort = await getNextAvailablePort();
|
||||||
const listenPort = config.getRawConfig().gerbil.start_port;
|
const listenPort = config.getRawConfig().gerbil.start_port;
|
||||||
let subEndpoint = "";
|
|
||||||
if (config.getRawConfig().gerbil.use_subdomain) {
|
|
||||||
subEndpoint = await getUniqueExitNodeEndpointName();
|
|
||||||
}
|
|
||||||
|
|
||||||
const exitNodeName =
|
const exitNodeName =
|
||||||
config.getRawConfig().gerbil.exit_node_name ||
|
config.getRawConfig().gerbil.exit_node_name ||
|
||||||
@@ -48,7 +44,7 @@ export async function createExitNode(
|
|||||||
.insert(exitNodes)
|
.insert(exitNodes)
|
||||||
.values({
|
.values({
|
||||||
publicKey,
|
publicKey,
|
||||||
endpoint: `${subEndpoint}${subEndpoint != "" ? "." : ""}${config.getRawConfig().gerbil.base_endpoint}`,
|
endpoint: config.getRawConfig().gerbil.base_endpoint,
|
||||||
address,
|
address,
|
||||||
listenPort,
|
listenPort,
|
||||||
online: true,
|
online: true,
|
||||||
|
|||||||
@@ -15,13 +15,7 @@ export async function createExitNode(
|
|||||||
if (!exitNodeQuery) {
|
if (!exitNodeQuery) {
|
||||||
const { value: address, release } = await getNextAvailableSubnet();
|
const { value: address, release } = await getNextAvailableSubnet();
|
||||||
try {
|
try {
|
||||||
// TODO: eventually we will want to get the next available port so that we can multiple exit nodes
|
|
||||||
// const listenPort = await getNextAvailablePort();
|
|
||||||
const listenPort = config.getRawConfig().gerbil.start_port;
|
const listenPort = config.getRawConfig().gerbil.start_port;
|
||||||
let subEndpoint = "";
|
|
||||||
if (config.getRawConfig().gerbil.use_subdomain) {
|
|
||||||
subEndpoint = await getUniqueExitNodeEndpointName();
|
|
||||||
}
|
|
||||||
|
|
||||||
const exitNodeName =
|
const exitNodeName =
|
||||||
config.getRawConfig().gerbil.exit_node_name ||
|
config.getRawConfig().gerbil.exit_node_name ||
|
||||||
@@ -32,7 +26,7 @@ export async function createExitNode(
|
|||||||
.insert(exitNodes)
|
.insert(exitNodes)
|
||||||
.values({
|
.values({
|
||||||
publicKey,
|
publicKey,
|
||||||
endpoint: `${subEndpoint}${subEndpoint != "" ? "." : ""}${config.getRawConfig().gerbil.base_endpoint}`,
|
endpoint: config.getRawConfig().gerbil.base_endpoint,
|
||||||
address,
|
address,
|
||||||
online: true,
|
online: true,
|
||||||
listenPort,
|
listenPort,
|
||||||
|
|||||||
Reference in New Issue
Block a user