瀏覽代碼

fix #780; include complete build info in the server state

Julius Pfrommer 8 年之前
父節點
當前提交
6a6ebf3455
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/server/ua_server.c

+ 1 - 0
src/server/ua_server.c

@@ -231,6 +231,7 @@ readStatus(void *handle, const UA_NodeId nodeid, UA_Boolean sourceTimeStamp,
     status->currentTime = UA_DateTime_now();
     status->state = UA_SERVERSTATE_RUNNING;
     status->secondsTillShutdown = 0;
+    UA_BuildInfo_copy(&server->config.buildInfo, &status->buildInfo);
 
     value->value.type = &UA_TYPES[UA_TYPES_SERVERSTATUSDATATYPE];
     value->value.arrayLength = 0;