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/.github/workflows/nrc-workflow-release.yml b/.github/workflows/nrc-workflow-release.yml index 684629d..e2dd85f 100644 --- a/.github/workflows/nrc-workflow-release.yml +++ b/.github/workflows/nrc-workflow-release.yml @@ -46,7 +46,7 @@ jobs: NRC_RELEASE_MSG: "node-rest-client release ${{ steps.readLatestTag.outputs.latestTag }}" GITHUB_TOKEN: ${{ secrets.NRC_GITHUB_TOKEN }} with: - version: npm run version:packages + version: npx changeset version commit: "chore(release): ${{ env.NRC_RELEASE_MSG }}" title: "${{ env.NRC_RELEASE_MSG }}" 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);