File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments