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.
This commit is contained in:
soh_cah_toa
2014-04-28 20:20:32 -04:00
parent e8fc288ff7
commit c63a55962a

View File

@@ -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.