Skip to content

Commit b54183b

Browse files
committed
WIP
Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
1 parent 76e25af commit b54183b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/fluent/plugin/in_forward.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ class ForwardInput < Input
3636
config_param :port, :integer, default: LISTEN_PORT
3737
desc 'The bind address to listen to.'
3838
config_param :bind, :string, default: '0.0.0.0'
39+
desc 'Whether it accept only IPv6 connection with IPv6 bind address.'
40+
config_param :bind_ipv6_only, :bool, default: true
3941

4042
config_param :backlog, :integer, default: nil
4143
# SO_LINGER 0 to send RST rather than FIN to avoid lots of connections sitting in TIME_WAIT at src
@@ -176,6 +178,7 @@ def start
176178
resolve_name: @resolve_hostname,
177179
linger_timeout: @linger_timeout,
178180
send_keepalive_packet: @send_keepalive_packet,
181+
bind_ipv6_only: @bind_ipv6_only,
179182
backlog: @backlog,
180183
&method(:handle_connection)
181184
)

0 commit comments

Comments
 (0)