Method: MiddleSquid::Server#start

Defined in:
lib/middle_squid/server.rb

#startObject


25
26
27
28
29
30
# File 'lib/middle_squid/server.rb', line 25

def start
  @thin.start

  sockname = EM.get_sockname @thin.backend.signature
  @port, @host = Socket.unpack_sockaddr_in sockname
end