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
36
36
config_param :port , :integer , default : LISTEN_PORT
37
37
desc 'The bind address to listen to.'
38
38
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
39
41
40
42
config_param :backlog , :integer , default : nil
41
43
# 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
176
178
resolve_name : @resolve_hostname ,
177
179
linger_timeout : @linger_timeout ,
178
180
send_keepalive_packet : @send_keepalive_packet ,
181
+ bind_ipv6_only : @bind_ipv6_only ,
179
182
backlog : @backlog ,
180
183
&method ( :handle_connection )
181
184
)
You can’t perform that action at this time.
0 commit comments