Qualify ::File to prevent a stacktrace

bug/bundler_fix
HD Moore 2014-11-22 17:16:13 -06:00
parent 673e21cfaf
commit 8becf417a7
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class Client
# The SSL certificate is being passed down as a file path # The SSL certificate is being passed down as a file path
if opts[:ssl_cert] if opts[:ssl_cert]
if ! File.exists? opts[:ssl_cert] if ! ::File.exists? opts[:ssl_cert]
elog("SSL certificate at #{opts[:ssl_cert]} does not exist and will be ignored") elog("SSL certificate at #{opts[:ssl_cert]} does not exist and will be ignored")
else else
# Load the certificate the same way that SslTcpServer does it # Load the certificate the same way that SslTcpServer does it