Преглед на файлове

Add EndpointUrl to CreateSessionRequest (#768)

Stefan Profanter преди 8 години
родител
ревизия
1bb7b550fb
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/client/ua_client.c

+ 1 - 0
src/client/ua_client.c

@@ -472,6 +472,7 @@ static UA_StatusCode SessionHandshake(UA_Client *client) {
     UA_ByteString_copy(&client->channel->clientNonce, &request.clientNonce);
     request.requestedSessionTimeout = 1200000;
     request.maxResponseMessageSize = UA_INT32_MAX;
+    UA_String_copy(&client->endpointUrl, &request.endpointUrl);
 
     UA_CreateSessionResponse response;
     UA_CreateSessionResponse_init(&response);