Просмотр исходного кода

Be sure to setup namespace 1 when server is going live

Jojakim Stahl лет назад: 5
Родитель
Сommit
fc0d2448c6
1 измененных файлов с 3 добавлено и 0 удалено
  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;