Skip to content

Commit 444b2c8

Browse files
authored
Add port number check in the MatchEndpoints method to ensure the correct endpoint is returned (#2925)
1 parent de688ac commit 444b2c8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Stack/Opc.Ua.Core/Stack/Configuration/ConfiguredEndpoints.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,12 @@ private EndpointDescriptionCollection MatchEndpoints(
14111411
continue;
14121412
}
14131413

1414+
// check for matching port.
1415+
if (sessionUrl.Port != endpointUrl.Port)
1416+
{
1417+
continue;
1418+
}
1419+
14141420
matches.Add(description);
14151421
}
14161422
}

0 commit comments

Comments
 (0)