diff --git a/lib/console/banner.rb b/lib/console/banner.rb index c1c29fc1b..ae70155f1 100644 --- a/lib/console/banner.rb +++ b/lib/console/banner.rb @@ -19,6 +19,7 @@ module Console if beef_host == '0.0.0.0' # the framework will listen on all interfaces interfaces = Socket.getaddrinfo(Socket.gethostname, 'www', Socket::AF_INET, Socket::SOCK_STREAM).map { |x| x[3] } interfaces = interfaces << "127.0.0.1" + interfaces.uniq! else # the framework will listen on only one interface interfaces = [beef_host] end