Pārlūkot izejas kodu

Be sure to setup namespace 1 when server is going live

Jojakim Stahl 5 gadi atpakaļ
vecāks
revīzija
fc0d2448c6
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      src/server/ua_server.c

+ 3 - 0
src/server/ua_server.c

@@ -409,6 +409,9 @@ verifyServerApplicationURI(const UA_Server *server) {
 
 UA_StatusCode
 UA_Server_run_startup(UA_Server *server) {
+    /* ensure that the uri for ns1 is set up from the app description */
+    setupNs1Uri(server);
+    
     if(server->state > UA_SERVERLIFECYCLE_FRESH)
         return UA_STATUSCODE_GOOD;