moll / node-mitm

Intercept and mock outgoing Node.js network TCP connections and HTTP requests for testing. Intercepts and gives you a Net.Socket, Http.IncomingMessage and Http.ServerResponse to test and respond with. Super useful when testing code that hits remote servers.
Other
636 stars 48 forks source link

fix TLS bypass #9

Closed defunctzombie closed 9 years ago

defunctzombie commented 9 years ago

pass tls.connect as the 'orig' function to use during bypass

moll commented 9 years ago

Hey, @defunctzombie. Thank you for the fix! I've merged it in and put out a new release. Let me know if it works for you. ;-)

defunctzombie commented 9 years ago

Thanks! It does work for me. I made sure of that before making the PR :)

moll commented 9 years ago

Oh, things can go wrong from the moment of the PR to the moment of a release. ^_^