Send site name

This commit is contained in:
Owen
2025-12-07 10:51:38 -05:00
parent 4e7843c1f3
commit 110e950476
3 changed files with 4 additions and 0 deletions

View File

@@ -275,6 +275,7 @@ export const handleOlmRegisterMessage: MessageHandler = async (context) => {
// Add site configuration to the array
siteConfigurations.push({
siteId: site.siteId,
name: site.name,
// relayEndpoint: relayEndpoint, // this can be undefined now if not relayed // lets not do this for now because it would conflict with the hole punch testing
endpoint: site.endpoint,
publicKey: site.publicKey,

View File

@@ -169,6 +169,7 @@ export const handleOlmServerPeerAddMessage: MessageHandler = async (
type: "olm/wg/peer/add",
data: {
siteId: site.siteId,
name: site.name,
endpoint: site.endpoint,
publicKey: site.publicKey,
serverIP: site.address,

View File

@@ -8,6 +8,7 @@ export async function addPeer(
clientId: number,
peer: {
siteId: number;
name: string;
publicKey: string;
endpoint: string;
relayEndpoint: string;
@@ -34,6 +35,7 @@ export async function addPeer(
type: "olm/wg/peer/add",
data: {
siteId: peer.siteId,
name: peer.name,
publicKey: peer.publicKey,
endpoint: peer.endpoint,
relayEndpoint: peer.relayEndpoint,