lib/ronin/web/cli/commands/server.rb in ronin-web-1.0.1 vs lib/ronin/web/cli/commands/server.rb in ronin-web-1.0.2

- old
+ new

@@ -56,11 +56,11 @@ type: String, usage: 'HOST', default: 'localhost' }, desc: 'Host name or IP to bind to' do |host| - App.host = host + App.bind = host end option :port, short: '-p', value: { type: Integer, @@ -142,10 +142,10 @@ puts request.body.read end end - log_info "Starting web server listening on #{App.host}:#{App.port} ..." + log_info "Starting web server listening on #{App.bind}:#{App.port} ..." begin App.run! rescue Errno::EADDRINUSE => error log_error(error.message) exit(1)