On Thu, Jun 18, 2009 at 04:47:13AM -0700, gwen hastings wrote:
> >> proxy = Jabber::Bytestreams::SOCKS5Socket.new('127.0.0.1','1080')
Hmm, try 1080 instead of '1080' perhaps?
> => #<Jabber::Bytestreams::SOCKS5Socket:0x11cea34>
> >> proxy.connect_domain('shannon.permutation.net',5222)
> Jabber::SOCKS5Error: Invalid SOCKS5 address type
> from
> /Library/Ruby/Gems/1.8/gems/xmpp4r-0.5/lib/xmpp4r/bytestreams/helper/socks5bytestreams/socks5.rb:58:in
> `connect_domain'
Strange, looks like buf[3] is nil, but it can't be because there was a
read(4) earlier. You're not using ruby 1.9 with 1.8 gems by any chance?
Maybe you could get a better error message by changing that line to
raise SOCKS5Error.new("Invalid SOCKS5 address type #{buf[3,1].inspect}")
_______________________________________________
Xmpp4r-devel mailing list
[email protected]
https://mail.gna.org/listinfo/xmpp4r-devel