Method: Rex::Proto::Kerberos::Client#initialize
- Defined in:
- lib/rex/proto/kerberos/client.rb
#initialize(opts = {}) ⇒ Client
Returns a new instance of Client.
28 29 30 31 32 33 34 |
# File 'lib/rex/proto/kerberos/client.rb', line 28 def initialize(opts = {}) self.host = opts[:host] self.port = (opts[:port] || 88).to_i self.timeout = (opts[:timeout] || 10).to_i self.protocol = opts[:protocol] || 'tcp' self.context = opts[:context] || {} end |