mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-02 09:05:49 +02:00
Working!
This commit is contained in:
parent
450b0bf4fa
commit
b9080a1ec1
7 changed files with 15 additions and 18 deletions
|
@ -73,11 +73,11 @@ export const handleOlmRegisterMessage: MessageHandler = async (context) => {
|
|||
logger.warn("Site has no subnet");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// add the peer to the exit node
|
||||
await addPeer(site.siteId, {
|
||||
publicKey: publicKey,
|
||||
allowedIps: [site.subnet]
|
||||
allowedIps: [client.subnet]
|
||||
});
|
||||
|
||||
return {
|
||||
|
@ -87,7 +87,7 @@ export const handleOlmRegisterMessage: MessageHandler = async (context) => {
|
|||
endpoint: `${site.endpoint}:${site.listenPort}`,
|
||||
publicKey: site.publicKey,
|
||||
serverIP: site.address!.split("/")[0],
|
||||
tunnelIP: client.subnet.split("/")[0]
|
||||
tunnelIP: client.subnet
|
||||
}
|
||||
},
|
||||
broadcast: false, // Send to all olms
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue