mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 02:36:38 +00:00
Send site name
This commit is contained in:
@@ -275,6 +275,7 @@ export const handleOlmRegisterMessage: MessageHandler = async (context) => {
|
|||||||
// Add site configuration to the array
|
// Add site configuration to the array
|
||||||
siteConfigurations.push({
|
siteConfigurations.push({
|
||||||
siteId: site.siteId,
|
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
|
// 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,
|
endpoint: site.endpoint,
|
||||||
publicKey: site.publicKey,
|
publicKey: site.publicKey,
|
||||||
|
|||||||
@@ -169,6 +169,7 @@ export const handleOlmServerPeerAddMessage: MessageHandler = async (
|
|||||||
type: "olm/wg/peer/add",
|
type: "olm/wg/peer/add",
|
||||||
data: {
|
data: {
|
||||||
siteId: site.siteId,
|
siteId: site.siteId,
|
||||||
|
name: site.name,
|
||||||
endpoint: site.endpoint,
|
endpoint: site.endpoint,
|
||||||
publicKey: site.publicKey,
|
publicKey: site.publicKey,
|
||||||
serverIP: site.address,
|
serverIP: site.address,
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ export async function addPeer(
|
|||||||
clientId: number,
|
clientId: number,
|
||||||
peer: {
|
peer: {
|
||||||
siteId: number;
|
siteId: number;
|
||||||
|
name: string;
|
||||||
publicKey: string;
|
publicKey: string;
|
||||||
endpoint: string;
|
endpoint: string;
|
||||||
relayEndpoint: string;
|
relayEndpoint: string;
|
||||||
@@ -34,6 +35,7 @@ export async function addPeer(
|
|||||||
type: "olm/wg/peer/add",
|
type: "olm/wg/peer/add",
|
||||||
data: {
|
data: {
|
||||||
siteId: peer.siteId,
|
siteId: peer.siteId,
|
||||||
|
name: peer.name,
|
||||||
publicKey: peer.publicKey,
|
publicKey: peer.publicKey,
|
||||||
endpoint: peer.endpoint,
|
endpoint: peer.endpoint,
|
||||||
relayEndpoint: peer.relayEndpoint,
|
relayEndpoint: peer.relayEndpoint,
|
||||||
|
|||||||
Reference in New Issue
Block a user