From bee7ce245227332607022fc62251d3b9b506e435 Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Mon, 7 Dec 2015 09:16:51 +0200 Subject: [PATCH] Bind host to 0.0.0.0 --- src/kemal.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal.cr b/src/kemal.cr index b46ea93..717adcf 100644 --- a/src/kemal.cr +++ b/src/kemal.cr @@ -17,7 +17,7 @@ at_exit do config.add_handler Kemal::Handler::INSTANCE config.add_handler HTTP::StaticFileHandler.new("./public") - server = HTTP::Server.new(config.port, config.handlers) + server = HTTP::Server.new("0.0.0.0", config.port, config.handlers) server.ssl = config.ssl logger.write "[#{config.env}] Kemal is ready to lead at #{config.scheme}://0.0.0.0:#{config.port}\n"