mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-05 15:32:19 +00:00
Handle unrelay and relaying better
This commit is contained in:
parent
a7e32d4013
commit
152fb47ca4
9 changed files with 125 additions and 81 deletions
|
|
@ -135,6 +135,8 @@ export const handleOlmServerPeerAddMessage: MessageHandler = async (
|
|||
return;
|
||||
}
|
||||
|
||||
// NOTE: here we are always starting direct to the peer and will relay later
|
||||
|
||||
await newtAddPeer(siteId, {
|
||||
publicKey: client.pubKey,
|
||||
allowedIps: [`${client.subnet.split("/")[0]}/32`], // we want to only allow from that client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue