File: em-socksify.rb

package info (click to toggle)
ruby-em-socksify 0.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 168 kB
  • sloc: ruby: 256; sh: 20; makefile: 3
file content (15 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'eventmachine'
require 'base64'

require 'em-socksify/socksify'
require 'em-socksify/errors'
require 'em-socksify/socks5'
require 'em-socksify/connectify'
require 'em-socksify/connect'

# Backport from ruby-1.9 to ruby-1.8 (which doesn't support pack('m0') either)
unless Base64.respond_to?(:strict_encode64)
  def Base64.strict_encode64(str)
    Base64.encode64(str).gsub("\n", "")
  end
end