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|