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 7eeaa92
Show file tree
Hide file tree
Showing 3 changed files with 15 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)
6 changes: 5 additions & 1 deletion .github/workflows/nrc-workflow-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ jobs:
export BRANCH_NAME="release/$RELEASE_TAG"
git checkout -b $BRANCH_NAME
git push --set-upstream origin release/$RELEASE_TAG
# test
- id: cleanInstallRepo
name: clean install repo
run: npm ci

- id: changesetPR
name: Create Release Pull Request
uses: changesets/action@v1
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 7eeaa92

Please sign in to comment.