LawnGnome / php-radius

The PECL radius extension.
http://pecl.php.net/radius
Other
12 stars 16 forks source link

Add support for IPv6 #7

Open bp-rest opened 2 years ago

bp-rest commented 2 years ago

Next to IPv6 suport socket handling is reworked to better operate in presence of multiple servers (IPv4 or IPv6) where either some destination networks are unreachable or otherwise fail on sendmsg (e.g. due to local firewall rules).

It makes use of two sockets (one for IPv4 communication, one for IPv6 communication) that are created as needed (e.g. no IPv6 socket created if there is no IPv6 server address).

When adding servers by host names, multiple entries are added, one for each IP address found for the hostname (be it IPv4 or IPv6).

NOTE: Windows compatibility is unknown.

See also PHP bug #59619 and issue #4