diff options
author | James M Snell <jasnell@gmail.com> | 2020-08-12 01:45:26 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2020-08-17 21:31:26 +0300 |
commit | 1c14810edc68cc460d32da80fc52284c079d20ff (patch) | |
tree | b5a9fd5a39dd5b8955c3635799f35b36429eb453 /src/node_sockaddr.h | |
parent | bfc35354c1290d7c1061c35fbd507aa129acc9d2 (diff) |
src: allow instances of net.BlockList to be created internally
Initial PR had it so that user code would create BlockList
instances. This sets it up so that instances can be created
internally by Node.js
PR-URL: https://github.com/nodejs/node/pull/34741
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'src/node_sockaddr.h')
-rw-r--r-- | src/node_sockaddr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_sockaddr.h b/src/node_sockaddr.h index f539cf6555f..69a370afa32 100644 --- a/src/node_sockaddr.h +++ b/src/node_sockaddr.h @@ -280,6 +280,7 @@ class SocketAddressBlockListWrap : v8::Local<v8::Context> context, void* priv); + static BaseObjectPtr<SocketAddressBlockListWrap> New(Environment* env); static void New(const v8::FunctionCallbackInfo<v8::Value>& args); static void AddAddress(const v8::FunctionCallbackInfo<v8::Value>& args); static void AddRange(const v8::FunctionCallbackInfo<v8::Value>& args); |