Permalink
Browse files

Fix connection packs

  • Loading branch information...
1 parent 382f259 commit e6d0aa8acbe79c65d543db13440eda3c9d005b50 @meh meh committed Sep 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/em-socksify/socksify.rb
View
4 lib/em-socksify/socksify.rb
@@ -36,9 +36,9 @@ def send_socks_connect_request
begin
# TODO: Implement address types for IPv6 and Domain
# TODO: resolve domain through the proxy
- send_data [1, Socket.gethostbyname(@host).last].pack('CA4n')
+ send_data [1, Socket.gethostbyname(@host).last].pack('CA4')
rescue
- send_data [3, @host.size, @host].pack('CCA4n')
+ send_data [3, @host.size, @host].pack('CCA*')
end
send_data [@port].pack('n')

0 comments on commit e6d0aa8

Please sign in to comment.