hanoman 0.1.35 → 0.1.36
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 +6 -1
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/server.js
CHANGED
|
@@ -12332,7 +12332,12 @@ async function pinnedRequest(input) {
|
|
|
12332
12332
|
path: `${input.url.pathname}${input.url.search}`,
|
|
12333
12333
|
headers: input.headers,
|
|
12334
12334
|
servername: input.url.hostname,
|
|
12335
|
-
|
|
12335
|
+
// Node >= 20 menyalakan `autoSelectFamily` secara default: socket memanggil `lookup` dengan
|
|
12336
|
+
// `all: true` dan membaca `addresses[0].address` dari hasilnya. Menjawab dalam bentuk skalar
|
|
12337
|
+
// di situ memberi `undefined` → ERR_INVALID_IP_ADDRESS sebelum satu paket pun keluar, dan
|
|
12338
|
+
// pemanggil (sync tick, webhook) menelannya sebagai "offline". Kedua bentuk dijawab supaya
|
|
12339
|
+
// pinning tetap benar apa pun setelan family-nya.
|
|
12340
|
+
lookup: (_host, opts, callback) => opts.all ? callback(null, [{ address: input.address, family: input.family }]) : callback(null, input.address, input.family),
|
|
12336
12341
|
timeout: input.connectMs
|
|
12337
12342
|
}, (response) => {
|
|
12338
12343
|
const chunks = [];
|