Skip to content

net,dgram: add ipv6Only option for net and dgram#23798

Closed
oyyd wants to merge 1 commit intonodejs:masterfrom
oyyd:net-ipv6only
Closed

net,dgram: add ipv6Only option for net and dgram#23798
oyyd wants to merge 1 commit intonodejs:masterfrom
oyyd:net-ipv6only

Conversation

@oyyd
Copy link
Contributor

@oyyd oyyd commented Oct 21, 2018

For our servers, the dual-stack support is enable by default, i.e. binding host "::" will also make "0.0.0.0" bound. This commit add ipv6Only option in net.Server.listen(), net.Socket.connect() and dgram.createSocket() methods which allows to disable dual-stack support.

Support for cluster module is also provided in this commit.

Fixes: #17664

/cc @silverwind

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. cluster Issues and PRs related to the cluster subsystem. dgram Issues and PRs related to the dgram subsystem / UDP. lib / src Issues and PRs related to general changes in the lib or src directory. net Issues and PRs related to the net subsystem. semver-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ipv6only listen option

10 participants