Update the jruby warning

git-svn-id: file:///home/svn/framework3/trunk@9260 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-05-09 17:05:15 +00:00
parent 22213466d2
commit 0db9cd2746
1 changed files with 7 additions and 5 deletions

View File

@ -39,13 +39,15 @@ if(RUBY_PLATFORM == 'java')
require 'socket'
s = Socket.new(::Socket::AF_INET, ::Socket::SOCK_STREAM, ::Socket::IPPROTO_TCP)
if(not s.respond_to?('bind'))
$stderr.puts "*** JRuby will not be supported until the Socket API is complete"
$stderr.puts "*** Information: http://jira.codehaus.org/browse/JRUBY-2739"
$stderr.puts "*** JRuby 1.5.0+ is required to use Metasploit with jRuby"
exit(0)
end
$stderr.puts "*** Warning: JRuby support is still incomplete, few things will work properly!"
trap Signal::list['INT'] do
Thread.main.raise Interrupt.new
end
end
end
# Check for OpenSSL and print a warning if it is not installed
begin