lib/hx/cli.rb in hx-0.24.0 vs lib/hx/cli.rb in hx-0.25.0

- old
+ new

@@ -46,12 +46,12 @@ opts.banner = <<EOS Usage: hx [--config CONFIG_FILE] [upgen] hx [--config CONFIG_FILE] regen hx [--config CONFIG_FILE] post[up] SOURCE:PATH hx [--config CONFIG_FILE] edit[up] SOURCE:PATH - hx [--config CONFIG_FILE] list SOURCE:PATTERN - hx [--config CONFIG_FILE] dump SOURCE:PATTERN + hx [--config CONFIG_FILE] list SOURCE[:PATTERN] + hx [--config CONFIG_FILE] dump SOURCE[:PATTERN] hx [--config CONFIG_FILE] serve [PORT] EOS opts.on("-c", "--config CONFIG_FILE", @@ -100,9 +100,10 @@ end m.call(site, *args) end def self.cmd_serve(site, port=nil) + Socket.do_not_reverse_lookup = true server = WEBrick::HTTPServer.new({:Port => port || 0}) real_port = server.config[:Port] base_url = "http://localhost:#{real_port}/" server.logger.info "Serving on #{base_url}"