Class: T2Server::DefaultConnectionParameters

Inherits:
ConnectionParameters show all
Defined in:
lib/t2-server/net/parameters.rb

Overview

Connection parameters with sensible defaults set for standard connections. If the connection is over SSL then the peer will be verified using the underlying OS’s certificate store.

Constant Summary

Constants inherited from ConnectionParameters

ConnectionParameters::ALLOWED_PARAMS

Instance Method Summary collapse

Methods inherited from ConnectionParameters

#[]=

Constructor Details

#initializeDefaultConnectionParameters

Create connection parameters that are secure by default and verify the server that is being connected to.



90
91
92
93
# File 'lib/t2-server/net/parameters.rb', line 90

def initialize
  super
  self[:verify_peer] = true
end