@abtnode/util 1.16.29-beta-cbfd116d → 1.16.29-beta-1fedbcdd

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.
Files changed (2) hide show
  1. package/lib/get-ip.js +9 -0
  2. package/package.json +6 -6
package/lib/get-ip.js CHANGED
@@ -35,6 +35,15 @@ const getIP = async ({ includeV6 = false, timeout = 5000, includeExternal = true
35
35
  const [inEc2, inGCP] = await Promise.all([isEC2(), gcp.isInGCP()]);
36
36
  debug('check env', { inEc2, inGCP });
37
37
 
38
+ if (process.env.ABT_NODE_HOST) {
39
+ return {
40
+ internal: process.env.ABT_NODE_HOST,
41
+ external: process.env.ABT_NODE_HOST,
42
+ internalV6: process.env.ABT_NODE_HOST,
43
+ externalV6: process.env.ABT_NODE_HOST,
44
+ };
45
+ }
46
+
38
47
  if (inEc2) {
39
48
  debug('in ec2');
40
49
  const [internal, external, internalV6, externalV6] = await Promise.all([
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.29-beta-cbfd116d",
6
+ "version": "1.16.29-beta-1fedbcdd",
7
7
  "description": "ArcBlock's JavaScript utility",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,11 +18,11 @@
18
18
  "author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.16.29-beta-cbfd116d",
22
- "@abtnode/logger": "1.16.29-beta-cbfd116d",
21
+ "@abtnode/constant": "1.16.29-beta-1fedbcdd",
22
+ "@abtnode/logger": "1.16.29-beta-1fedbcdd",
23
23
  "@arcblock/pm2": "^5.4.0",
24
- "@blocklet/constant": "1.16.29-beta-cbfd116d",
25
- "@blocklet/meta": "1.16.29-beta-cbfd116d",
24
+ "@blocklet/constant": "1.16.29-beta-1fedbcdd",
25
+ "@blocklet/meta": "1.16.29-beta-1fedbcdd",
26
26
  "@ocap/client": "1.18.126",
27
27
  "@ocap/mcrypto": "1.18.126",
28
28
  "@ocap/util": "1.18.126",
@@ -79,5 +79,5 @@
79
79
  "fs-extra": "^11.2.0",
80
80
  "jest": "^29.7.0"
81
81
  },
82
- "gitHead": "e9bdb7af77f2d126e40195c67972b07fe683adf9"
82
+ "gitHead": "e66e220d775e821c85b8bd6286342c202ad143f0"
83
83
  }