Parcourir la source

Be sure to setup namespace 1 when server is going live

Jojakim Stahl il y a 5 ans
Parent
commit
fc0d2448c6
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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;