Skip to content

Commit

Permalink
Fix the behavior in case of the server is reachable only via an alter…
Browse files Browse the repository at this point in the history
…nate address (#1480)

Fix the behavior in case of the server is reachable only via an alternate address - this alternate address matching the address, the client provides, is added to the list of accessible addresses so that the TranslateApplicationDescription method works correctly and the client gets back appropriate endpoints with the corresponding alternate address within them (#1480)
  • Loading branch information
dimtix committed Aug 19, 2021
1 parent 73e0e59 commit c37f66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stack/Opc.Ua.Core/Stack/Server/ServerBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ protected IList<BaseAddress> FilterByEndpointUrl(Uri endpointUrl, IList<BaseAddr
{
if (alternateUrl.DnsSafeHost == endpointUrl.DnsSafeHost)
{
accessibleAddresses.Add(baseAddress);
accessibleAddresses.Add(new BaseAddress() { Url = alternateUrl, ProfileUri = baseAddress.ProfileUri, DiscoveryUrl = alternateUrl });
break;
}
}
Expand Down

0 comments on commit c37f66c

Please sign in to comment.