mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added complete list of IPv6-based SNMP transport specifiers in snmpTransportToAddressFamily()
This commit is contained in:
@@ -1253,7 +1253,9 @@ function snmpTransportToAddressFamily($transport) {
|
||||
$transport = 'udp';
|
||||
}
|
||||
|
||||
if ($transport == 'udp6' || $transport == 'tcp6') {
|
||||
$ipv6_snmp_transport_specifiers = array('udp6', 'udpv6', 'udpipv6', 'tcp6', 'tcpv6', 'tcpipv6');
|
||||
|
||||
if (in_array($transport, $ipv6_snmp_transport_specifiers)) {
|
||||
return AF_INET6;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user