-
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.01%
=======================================
Files 656 656
Lines 188988 189026 +38
Branches 35992 36002 +10
=======================================
+ Hits 166315 166364 +49
+ Misses 15838 15834 -4
+ Partials 6835 6828 -7
|
e6be3e3
to
6568ab5
Compare
The first PR for #55000
make -j4 test
(UNIX), orvcbuild test
(Windows) passes