mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-30 15:45:12 +02:00
Fix subnet issues
This commit is contained in:
parent
8ee6a3f134
commit
733e0e07c3
4 changed files with 8 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue