hanoman 0.9.17 → 0.9.18
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/build-info.json +3 -3
- package/dist/server.js +4 -2
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/server.js
CHANGED
|
@@ -44645,7 +44645,7 @@ var init_ssrf = __esm({
|
|
|
44645
44645
|
});
|
|
44646
44646
|
|
|
44647
44647
|
// src/services/safe-outbound-request.ts
|
|
44648
|
-
import {
|
|
44648
|
+
import { Resolver } from "node:dns/promises";
|
|
44649
44649
|
import { request as httpRequest } from "node:http";
|
|
44650
44650
|
import { request as httpsRequest } from "node:https";
|
|
44651
44651
|
import { isIP } from "node:net";
|
|
@@ -44784,7 +44784,9 @@ var init_safe_outbound_request = __esm({
|
|
|
44784
44784
|
defaultLookup2 = async (host2) => {
|
|
44785
44785
|
const literal = isIP(host2);
|
|
44786
44786
|
if (literal) return [{ address: host2, family: literal }];
|
|
44787
|
-
const
|
|
44787
|
+
const resolver = new Resolver();
|
|
44788
|
+
const [v4, v6] = await Promise.allSettled([resolver.resolve4(host2), resolver.resolve6(host2)]);
|
|
44789
|
+
resolver.cancel();
|
|
44788
44790
|
const out4 = [];
|
|
44789
44791
|
if (v4.status === "fulfilled") out4.push(...v4.value.map((address) => ({ address, family: 4 })));
|
|
44790
44792
|
if (v6.status === "fulfilled") out4.push(...v6.value.map((address) => ({ address, family: 6 })));
|