Skip to content

Commit 4ad873d

Browse files
committed
refactor: add family args (PR #204)
1 parent 427b4a4 commit 4ad873d

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.changeset/fuzzy-dancers-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'node-rest-client': minor
3+
---
4+
5+
add family args (PR #204 Update: add family args)

.github/workflows/nrc-workflow-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
NRC_RELEASE_MSG: "node-rest-client release ${{ steps.readLatestTag.outputs.latestTag }}"
4747
GITHUB_TOKEN: ${{ secrets.NRC_GITHUB_TOKEN }}
4848
with:
49-
version: npm run version:packages
49+
version: npx changeset version
5050
commit: "chore(release): ${{ env.NRC_RELEASE_MSG }}"
5151
title: "${{ env.NRC_RELEASE_MSG }}"
5252

lib/NrcIoManager.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,11 @@ export default class NrcIoManager extends events.EventEmitter {
540540
} else {
541541
options.headers[CONSTANTS.HEADER_CONTENT_LENGTH] = 0;
542542
}
543+
544+
// add family arg for fix DNS error, https://github.com/nodejs/node/issues/5436
545+
if (args.family === 4 || args.family === 6) {
546+
options.family = args.family;
547+
}
543548
}
544549

545550
debug('options post connect', options);

0 commit comments

Comments
 (0)