abler-api 0.1.20 → 0.1.21

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.
@@ -1057,7 +1057,7 @@ class apiUtil$1 {
1057
1057
  configNeeded();
1058
1058
  return {
1059
1059
  hosts: appSetting.serverHosts || ["localhost"],
1060
- port: x.listenPort || +params.port || 8443
1060
+ port: appSetting.listenPort || +params.port || 8443
1061
1061
  };
1062
1062
  }
1063
1063
  /**
@@ -1070,7 +1070,7 @@ class apiUtil$1 {
1070
1070
 
1071
1071
  static async hostIsMySelf(host, req) {
1072
1072
  let clientIp = apiUtil$1.getClientIp(req);
1073
- return getMyIp({
1073
+ return ppUtil$2.getMyIp({
1074
1074
  hosts: [host, clientIp]
1075
1075
  });
1076
1076
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abler-api",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "API服务相关工具",
5
5
  "main": "./dist/cjs/pp-util.js",
6
6
  "-module": "./dist/es/pp-util.js",