Sfoglia il codice sorgente

Be sure to setup namespace 1 when server is going live

Jojakim Stahl 5 anni fa
parent
commit
fc0d2448c6
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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;