Handle case where local socket is IPv4 and remote is v6

This commit is contained in:
Jamie Cameron
2011-05-13 08:29:05 -07:00
parent 1cc5fa02b0
commit dbfa03c93d

View File

@@ -430,8 +430,9 @@ if ($config{'inetd'}) {
$acptaddr || exit;
# Work out remote and local IPs
(undef, $peera, undef) = &get_address_ip($acptaddr, $ipv6);
$ipv6 = length($acptaddr) > 16;
(undef, $locala) = &get_socket_ip(SOCK, $ipv6);
(undef, $peera, undef) = &get_address_ip($acptaddr, $ipv6);
print DEBUG "main: Starting handle_request loop pid=$$\n";
while(&handle_request($peera, $locala, $ipv6)) { }