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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user