mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Added warning when registering insecure state
This commit is contained in:
parent
3d09f7e216
commit
068078fde8
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ class LogStash::Inputs::IMAP < LogStash::Inputs::Base
|
|||
require "net/imap" # in stdlib
|
||||
require "mail" # gem 'mail'
|
||||
|
||||
if @secure and not @verify_cert
|
||||
@logger.warn("Running IMAP without verifying the certificate may grant attackers unauthorized access to your mailbox or data")
|
||||
end
|
||||
|
||||
if @port.nil?
|
||||
if @secure
|
||||
@port = 993
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue