Class: SocksTunnel::Local

Inherits:
Object
  • Object
show all
Defined in:
lib/socks_tunnel/local.rb

Defined Under Namespace

Modules: Server Classes: Connection

Class Method Summary collapse

Class Method Details

.runObject



5
6
7
8
9
10
11
# File 'lib/socks_tunnel/local.rb', line 5

def self.run
  EventMachine.run do
    puts "Start local server at #{Config.local_server_host}:#{Config.local_server_port}"
    EventMachine.start_server(Config.local_server_host, Config.local_server_port, Server)
    Process.daemon if Config.daemon?
  end
end