Changelog
1.2.1 (Mar 30, 2016)
connect
event after socket
is emitted on
ClientRequest
.secureConnect
event
and given a callback, bind it to secureConnect
rather than connect
.Changelog
1.2.0 (Sep 1, 2015)
Changelog
1.1.0 (Apr 25, 2015)
Returns an instance of Tls.TLSSocket
from Tls.connect
.
The returned socket has both encrypted
and authorized
set.
Thanks to Andreas Lind for the initial
encrypted
property patch!
On Node v0.10 Tls.connect
will just return a Net.Socket
with the
encrypted
and authorized
properties set.
Changelog
1.0.3 (Jan 26, 2015)
Mitm.prototype.addListener
to look more like an EventEmitter.Changelog
0.5.1 (May 28, 2014)
Mitm.prototype.off
to remove bound events with
(mitm.off("request", listener)
).Changelog
0.5.0 (May 19, 2014)
Adds bypass functionality to not intercept a particular outgoing connection
and let it connect as usual.
Let a connection happen by calling bypass
on the socket object given to the
connect
event:
var mitm = Mitm()
mitm.on("connect", function(socket) { socket.bypass() })
Net.connect({host: "example.org", port: 25})
Emits connect
and connection
on Mitm with the options object given to
Net.connect
.
You can use that with the above bypass functionality to bypass selectively:
mitm.on("connect", function(socket, opts) {
if (opts.host == "sql.example.org" && opts.port = 5432) socket.bypass()
})