-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net: support blocklist in net.connect #56075
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
lib/net.js
Outdated
@@ -510,6 +511,13 @@ function Socket(options) { | |||
// Used after `.destroy()` | |||
this[kBytesRead] = 0; | |||
this[kBytesWritten] = 0; | |||
if (options.blockList) { | |||
if (options.blockList instanceof module.exports.BlockList) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO for later... we should have a more efficient isBlockList(...)
API
176a993
to
e6be3e3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #56075 +/- ##
==========================================
+ Coverage 88.00% 88.02% +0.01%
==========================================
Files 656 656
Lines 188988 189014 +26
Branches 35992 35999 +7
==========================================
+ Hits 166315 166371 +56
+ Misses 15838 15823 -15
+ Partials 6835 6820 -15
|
The first PR for #55000
make -j4 test
(UNIX), orvcbuild test
(Windows) passes