Chainid send through

This commit is contained in:
Owen
2026-03-27 12:04:41 -07:00
parent 395cab795c
commit 04dfbd0a14
3 changed files with 12 additions and 7 deletions

View File

@@ -11,7 +11,8 @@ import { canCompress } from "@server/lib/clientVersionChecks";
const inputSchema = z.object({
publicKey: z.string(),
port: z.int().positive()
port: z.int().positive(),
chainId: z.string()
});
type Input = z.infer<typeof inputSchema>;
@@ -43,7 +44,7 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
return;
}
const { publicKey, port } = message.data as Input;
const { publicKey, port, chainId } = message.data as Input;
const siteId = newt.siteId;
// Get the current site data
@@ -136,7 +137,8 @@ export const handleGetConfigMessage: MessageHandler = async (context) => {
data: {
ipAddress: site.address,
peers,
targets: targetsToSend
targets: targetsToSend,
chainId: chainId
}
},
options: {