Skip to content

Commit

Permalink
refactor: add family args (PR #204)
Browse files Browse the repository at this point in the history
  • Loading branch information
aacerox committed Oct 10, 2023
1 parent 427b4a4 commit fae67ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-dancers-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'node-rest-client': minor
---

add family args (PR #204 Update: add family args)
2 changes: 1 addition & 1 deletion .github/workflows/nrc-workflow-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: npm run version:packages --verbose
commit: "chore(release): ${{ env.NRC_RELEASE_MSG }}"
title: "${{ env.NRC_RELEASE_MSG }}"

Expand Down
5 changes: 5 additions & 0 deletions lib/NrcIoManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fae67ba

Please sign in to comment.