Sha256: 351ade9164f5988e7724b2e16fe2e8e1f54606dd35c2d57edd32cec8e523698e
Contents?: true
Size: 717 Bytes
Versions: 1
Compression:
Stored size: 717 Bytes
Contents
module RSocks class Config def initialize @store = {} end def auth_adaptor=(adaptor) @store[:adaptor] = adaptor end def auth_adaptor @store[:adaptor] end def auth_method=(method) if method == :no_auth @store[:auth_method] = RSocks::NO_AUTH elsif method == :password @store[:auth_method] = RSocks::PASSWORD_LOGIN else raise Error, "unknown auth method #{method}" end end def auth_method @store[:auth_method] end def proxy_buffer_size @store[:proxy_buffer_size] || 1024 * 1024 * 10 end def proxy_buffer_size=(value) @store[:proxy_buffer_size] = value.to_i end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
r_socks-0.1.8 | lib/r_socks/config.rb |