mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-16 01:46:38 +00:00
more frontend for clients
This commit is contained in:
@@ -77,11 +77,11 @@ export async function pickClientDefaults(
|
||||
|
||||
const parsedSite = sitesRequiredFields.safeParse(site);
|
||||
if (!parsedSite.success) {
|
||||
logger.error("Unable to pick client defaults because: " + fromError(parsedSite.error).toString());
|
||||
return next(
|
||||
createHttpError(
|
||||
HttpCode.BAD_REQUEST,
|
||||
"Unable to pick client defaults because: " +
|
||||
fromError(parsedSite.error).toString()
|
||||
"Site is not configured to accept client connectivity"
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
|
||||
const newt = client as Newt;
|
||||
|
||||
logger.debug(JSON.stringify(message.data));
|
||||
|
||||
|
||||
|
||||
logger.debug("Handling Newt get config message!");
|
||||
|
||||
@@ -60,7 +60,7 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
|
||||
let site: Site | undefined;
|
||||
if (!site) {
|
||||
const address = await getNextAvailableSubnet();
|
||||
const listenPort = await getNextAvailablePort();
|
||||
const listenPort = await getNextAvailablePort();
|
||||
|
||||
// create a new exit node
|
||||
const [updateRes] = await db
|
||||
|
||||
Reference in New Issue
Block a user