From c63a55962a84b36384c841d415df4a6411fc30f8 Mon Sep 17 00:00:00 2001 From: soh_cah_toa Date: Mon, 28 Apr 2014 20:20:32 -0400 Subject: [PATCH] Added unless modifier to prevent displaying no upstream servers. Even though #print_more will display nothing since ''.split("\n").each() iterates 0 times, it will still be called without this modifier which is unnecessary. --- extensions/dns/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/dns/api.rb b/extensions/dns/api.rb index 138541717..974b30488 100644 --- a/extensions/dns/api.rb +++ b/extensions/dns/api.rb @@ -52,7 +52,7 @@ module BeEF dns.run(:upstream => servers, :listen => interfaces) print_info "DNS Server: #{address}:#{port} (#{protocol})" - print_more upstream_servers + print_more upstream_servers unless upstream_servers.empty? end # Mounts the handler for processing DNS RESTful API requests.