astro / socksify-ruby

Redirect any TCP connection initiated by a Ruby script through a SOCKS5 proxy
http://socksify.rubyforge.org/
Other
163 stars 77 forks source link

Fix debug output when debug=false #28

Closed dblommesteijn closed 6 years ago

dblommesteijn commented 8 years ago

This PR will fix the debug output bug, caused by wrongly evaluating @@debug.

When explicitly setting Socksify.debug = false the @@debug class variable is wrongly evaluated in Socksify, causing an explicit false assignment to send strings to the output buffer. Undefined class variables will automatically yield false.

dblommesteijn commented 8 years ago

@astro is this repo still being maintained?

dblommesteijn commented 7 years ago

Guess @astro is chilling in the Caribbean ;)

musybite commented 6 years ago

Thanks, your contribution is much appreciated! I decided on a bit more elaborated check and pushed it, so closing this MR.