Browse files

start EM server on 0.0.0.0 rather than localhost

localhost won't always work on an arbitrary network setup. 0.0.0.0 should
always work, and listen on all interfaces.

Change-Id: Ib99b93952043458ef21d4d2e6d8193e3077fe930
  • Loading branch information...
1 parent 25fbf20 commit eaca032a7a199b6c357a649042ad4cbc929a51bc @vito vito committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/caldecott/client/client.rb
View
2 lib/caldecott/client/client.rb
@@ -29,7 +29,7 @@ def self.start(opts)
puts "Starting local server on port #{local_port} to #{tun_url}"
end
- EM.start_server("localhost", local_port, TcpConnection) do |conn|
+ EM.start_server("0.0.0.0", local_port, TcpConnection) do |conn|
# avoid races between tunnel setup and incoming local data
conn.pause

0 comments on commit eaca032

Please sign in to comment.