Merge pull request #21 from wizche/patch-1

Update README.md
This commit is contained in:
iddoeldor 2021-01-31 10:27:26 +02:00 committed by GitHub
commit 01867e4796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,7 +308,8 @@ Process
Interceptor.attach(ex.address, { Interceptor.attach(ex.address, {
onEnter: function (args) { onEnter: function (args) {
var fd = args[0].toInt32(); var fd = args[0].toInt32();
if (Socket.type(fd) !== 'tcp') var socktype = Socket.type(fd);
if (socktype !== 'tcp' && socktype !== 'tcp6')
return; return;
var address = Socket.peerAddress(fd); var address = Socket.peerAddress(fd);
if (address === null) if (address === null)