Fix subnet issues

This commit is contained in:
Owen
2025-02-24 20:21:57 -05:00
parent 8ee6a3f134
commit 733e0e07c3
4 changed files with 8 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ export const handleOlmRegisterMessage: MessageHandler = async (context) => {
endpoint: site.endpoint,
publicKey: site.publicKey,
serverIP: site.address!.split("/")[0],
tunnelIP: client.subnet
tunnelIP: `${client.subnet.split("/")[0]}/${site.address!.split("/")[1]}`, // put the client ip in the same subnet as the site. TODO: Is this right? Maybe we need th make .subnet work properly!
}
},
broadcast: false, // Send to all olms