From 54db22360279de1b5144f8736e21baee8b29a0a2 Mon Sep 17 00:00:00 2001 From: aacerox Date: Tue, 10 Oct 2023 22:09:23 +0200 Subject: [PATCH] refactor: add family args (PR #204) --- .changeset/config.json | 2 +- .changeset/fuzzy-dancers-unite.md | 5 +++++ lib/NrcIoManager.js | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/fuzzy-dancers-unite.md diff --git a/.changeset/config.json b/.changeset/config.json index 2197cb7..2cecfa3 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -5,7 +5,7 @@ "fixed": [], "linked": [], "access": "restricted", - "baseBranch": "master", + "baseBranch": "feat/general-upgrade", "updateInternalDependencies": "patch", "ignore": [] } diff --git a/.changeset/fuzzy-dancers-unite.md b/.changeset/fuzzy-dancers-unite.md new file mode 100644 index 0000000..cb2f023 --- /dev/null +++ b/.changeset/fuzzy-dancers-unite.md @@ -0,0 +1,5 @@ +--- +'node-rest-client': minor +--- + +add family args (PR #204 Update: add family args) diff --git a/lib/NrcIoManager.js b/lib/NrcIoManager.js index 2456997..1740212 100644 --- a/lib/NrcIoManager.js +++ b/lib/NrcIoManager.js @@ -540,6 +540,11 @@ export default class NrcIoManager extends events.EventEmitter { } else { options.headers[CONSTANTS.HEADER_CONTENT_LENGTH] = 0; } + + // add family arg for fix DNS error, https://github.com/nodejs/node/issues/5436 + if (args.family === 4 || args.family === 6) { + options.family = args.family; + } } debug('options post connect', options);