mirror of
https://github.com/elastic/logstash.git
synced 2025-04-25 23:27:19 -04:00
Add secure setting as I need ssl
This commit is contained in:
parent
97d37be9d8
commit
6b4b51f3be
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,9 @@ class LogStash::Inputs::Irc < LogStash::Inputs::Base
|
||||||
# Port for the IRC Server
|
# Port for the IRC Server
|
||||||
config :port, :validate => :number, :required => true
|
config :port, :validate => :number, :required => true
|
||||||
|
|
||||||
|
# Set this to true to enable SSL.
|
||||||
|
config :secure, :validate => :boolean, :default => false
|
||||||
|
|
||||||
# IRC Nickname
|
# IRC Nickname
|
||||||
config :nick, :validate => :string, :default => "logstash"
|
config :nick, :validate => :string, :default => "logstash"
|
||||||
|
|
||||||
|
@ -54,6 +57,7 @@ class LogStash::Inputs::Irc < LogStash::Inputs::Base
|
||||||
c.user = @user
|
c.user = @user
|
||||||
c.channels = @channels
|
c.channels = @channels
|
||||||
c.password = @password
|
c.password = @password
|
||||||
|
c.ssl.use = @secure
|
||||||
end
|
end
|
||||||
queue = @irc_queue
|
queue = @irc_queue
|
||||||
@bot.on :channel do |m|
|
@bot.on :channel do |m|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue