[tcp/udp] Add a configuration option for network type #40407
Labels
enhancement
Input:TCP
Input:UDP
Team:Security-Deployment and Devices
Deployment and Devices Team in Security Solution
Overview
Go provides an argument to the Listen function (likewise for ListenTCP and ListenUDP) to specify the type of network (IPv4, IPv6, or both/auto) to be used when creating the listener. The network type for the TCP and UDP inputs are
tcp
andudp
, respectively, and there is currently no way to override this value. Certain situations may require locking down the type of network being used (such as providing a hostname or usinglocalhost
).The TCP input would accept these values for the network type:
tcp
(default)tcp4
tcp6
The UDP input would accept these values for the network type:
udp
(default)udp4
udp6
Examples
Acceptance Criteria
udp
ortcp
) is usedThe text was updated successfully, but these errors were encountered: