summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias Hecker <apoc@sixserv.org>2014-03-05 13:10:22 +0100
committerMatthias Hecker <apoc@sixserv.org>2014-03-05 13:10:22 +0100
commitc10364437a7182bbb731627169dafce67b01a912 (patch)
tree9a37e07ebb1c59daef74f11d41350ba1e797bfe0 /lib
parent269d874e9dfc9e076eb45ca22397ad2f3715aa29 (diff)
[ssl] fix for missing ca path
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/ircbot.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 34c82926..b954e3b5 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -292,7 +292,7 @@ class Bot
:desc => "The CA file used to verify the SSL connection.",
:wizard => true)
Config.register Config::StringValue.new('server.ssl_ca_path',
- :default => '', :requires_restart => true,
+ :default => default_ssl_ca_path, :requires_restart => true,
:desc => "Alternativly a directory that includes CA PEM files used to verify the SSL connection.",
:wizard => true)
Config.register Config::StringValue.new('server.password',
@@ -822,6 +822,11 @@ class Bot
end
end
+ def default_ssl_ca_path
+ file = default_ssl_ca_file
+ File.dirname file if file
+ end
+
# Determine if tokyocabinet is installed, if it is use it as a default.
def default_db
begin