node-opcua-local-discovery-server 2.111.0 → 2.113.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -16,6 +16,7 @@ const {
|
|
|
16
16
|
const Vorpal = require("vorpal");
|
|
17
17
|
const vorpal_repl = require("vorpal-repl");
|
|
18
18
|
const envPaths = require("env-paths");
|
|
19
|
+
const { make_debugLog } = require("node-opcua-debug");
|
|
19
20
|
|
|
20
21
|
const paths = envPaths("node-opcua-local-discovery-server");
|
|
21
22
|
const configFolder = paths.config;
|
|
@@ -25,6 +26,7 @@ const serverCertificateManager = new OPCUACertificateManager({
|
|
|
25
26
|
rootFolder: pkiFolder,
|
|
26
27
|
name: "PKI"
|
|
27
28
|
});
|
|
29
|
+
const debugLog = make_debugLog("LDS");
|
|
28
30
|
|
|
29
31
|
async function getIpAddresses() {
|
|
30
32
|
const ipAddresses = [];
|
|
@@ -39,11 +41,13 @@ async function getIpAddresses() {
|
|
|
39
41
|
}
|
|
40
42
|
if (alias >= 1) {
|
|
41
43
|
// this single interface has multiple ipv4 addresses
|
|
42
|
-
|
|
44
|
+
// istanbul ignore next
|
|
45
|
+
debugLog(interfaceName + ":" + alias, iFace.address);
|
|
43
46
|
ipAddresses.push(iFace.address);
|
|
44
47
|
} else {
|
|
45
48
|
// this interface has only one ipv4 address
|
|
46
|
-
|
|
49
|
+
// istanbul ignore next
|
|
50
|
+
debugLog(interfaceName, iFace.address);
|
|
47
51
|
ipAddresses.push(iFace.address);
|
|
48
52
|
}
|
|
49
53
|
++alias;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-opcua-local-discovery-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.113.0",
|
|
4
4
|
"description": "pure nodejs OPCUA SDK - module local-discovery-server",
|
|
5
5
|
"bin": {
|
|
6
6
|
"lds": "./bin/local-discovery-server.js",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"env-paths": "2.2.1",
|
|
31
|
-
"node-opcua": "2.
|
|
31
|
+
"node-opcua": "2.113.0",
|
|
32
32
|
"vorpal": "^1.12.0",
|
|
33
33
|
"vorpal-repl": "^1.1.8",
|
|
34
34
|
"yargs": "15.4.1"
|
|
35
35
|
},
|
|
36
36
|
"homepage": "http://node-opcua.github.io/",
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "36db335391fedd39726990a1b37f7768da16466a",
|
|
38
38
|
"files": []
|
|
39
39
|
}
|