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.
- package/dist/cjs/pp-util.js +2 -2
- package/package.json +1 -1
package/dist/cjs/pp-util.js
CHANGED
|
@@ -1057,7 +1057,7 @@ class apiUtil$1 {
|
|
|
1057
1057
|
configNeeded();
|
|
1058
1058
|
return {
|
|
1059
1059
|
hosts: appSetting.serverHosts || ["localhost"],
|
|
1060
|
-
port:
|
|
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
|
}
|