From 6b4b51f3be7914ec23193ebce763484ce91d31d5 Mon Sep 17 00:00:00 2001 From: Tomas Doran Date: Thu, 7 Mar 2013 22:34:06 +0000 Subject: [PATCH] Add secure setting as I need ssl --- lib/logstash/inputs/irc.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/logstash/inputs/irc.rb b/lib/logstash/inputs/irc.rb index 5d92e14d5..b5d5cfe20 100644 --- a/lib/logstash/inputs/irc.rb +++ b/lib/logstash/inputs/irc.rb @@ -15,6 +15,9 @@ class LogStash::Inputs::Irc < LogStash::Inputs::Base # Port for the IRC Server config :port, :validate => :number, :required => true + # Set this to true to enable SSL. + config :secure, :validate => :boolean, :default => false + # IRC Nickname config :nick, :validate => :string, :default => "logstash" @@ -54,6 +57,7 @@ class LogStash::Inputs::Irc < LogStash::Inputs::Base c.user = @user c.channels = @channels c.password = @password + c.ssl.use = @secure end queue = @irc_queue @bot.on :channel do |m|