Update README.md

Also intercept tcp6
This commit is contained in:
Sergio Paganoni 2021-01-28 12:21:00 +01:00 committed by GitHub
parent ea8b909747
commit 6b5e839335
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)