1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-02-22 12:23:24 +00:00

fix relay regression limiting multiple mappings to the same remote port, when the local port is unique (#120)

This commit is contained in:
fornax-a
2026-01-26 16:00:30 +00:00
committed by GitHub
parent 9ef8f38930
commit 618365289b

View File

@@ -2037,7 +2037,7 @@ namespace MeshCentralRouter
if (c.GetType() == typeof(MapUserControl))
{
MapUserControl cc = (MapUserControl)c;
if ((cc.protocol == (int)x["protocol"]) && (cc.remotePort == (int)x["remotePort"]) && (cc.appId == appId) &&
if ((cc.protocol == (int)x["protocol"]) && (cc.remotePort == (int)x["remotePort"]) && (cc.localPort == (int)x["localPort"]) && (cc.appId == appId) &&
(cc.node == tmpNode || cc.node == node) && (tmpNode == node || cc.remoteIP == node.host))
{
// Found a match