lib/fluent/plugin/output_node.rb in fluent-plugin-secure-forward-0.1.0 vs lib/fluent/plugin/output_node.rb in fluent-plugin-secure-forward-0.1.1
- old
+ new
@@ -5,11 +5,12 @@
# require 'resolve/hostname'
require_relative 'openssl_util'
class Fluent::SecureForwardOutput::Node
- attr_accessor :host, :port, :hostlabel, :shared_key, :username, :password
+ attr_accessor :host, :port, :hostlabel, :shared_key, :username, :password, :standby
+
attr_accessor :authentication, :keepalive
attr_accessor :socket, :sslsession, :unpacker, :shared_key_salt, :state
attr_accessor :first_session, :detach
@@ -22,9 +23,10 @@
@host = conf['host']
@port = (conf['port'] || Fluent::SecureForwardOutput::DEFAULT_SECURE_CONNECT_PORT).to_i
@hostlabel = conf['hostlabel'] || conf['host']
@username = conf['username'] || ''
@password = conf['password'] || ''
+ @standby = conf.has_key?('standby') && Fluent::Config.bool_value(conf['standby']) != false
@authentication = nil
@keepalive = nil
@expire = nil