mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-25 14:26:39 +00:00
Fix bad sourcePort
This commit is contained in:
@@ -188,7 +188,7 @@ export async function updateHolePunch(
|
|||||||
`${destination.reachableAt}/update-destinations`,
|
`${destination.reachableAt}/update-destinations`,
|
||||||
{
|
{
|
||||||
sourceIp: client.endpoint?.split(":")[0] || "",
|
sourceIp: client.endpoint?.split(":")[0] || "",
|
||||||
sourcePort: client.endpoint?.split(":")[1] || 0,
|
sourcePort: parseInt(client.endpoint?.split(":")[1] || "0"),
|
||||||
destinations: destination.destinations
|
destinations: destination.destinations
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -220,7 +220,7 @@ export async function updateHolePunch(
|
|||||||
)?.destinations || [];
|
)?.destinations || [];
|
||||||
|
|
||||||
} else if (newtId) {
|
} else if (newtId) {
|
||||||
logger.debug(`Got hole punch with ip: ${ip}, port: ${port} for olmId: ${olmId}`);
|
logger.debug(`Got hole punch with ip: ${ip}, port: ${port} for newtId: ${newtId}`);
|
||||||
|
|
||||||
const { session, newt: newtSession } =
|
const { session, newt: newtSession } =
|
||||||
await validateNewtSessionToken(token);
|
await validateNewtSessionToken(token);
|
||||||
|
|||||||
Reference in New Issue
Block a user