1 |
--- qpsmtpd-forkserver.af_inet6 Sun Nov 5 16:25:09 2006 |
2 |
+++ qpsmtpd-forkserver Sun Nov 5 17:32:08 2006 |
3 |
@@ -231,9 +231,9 @@ |
4 |
my ($port, $iaddr) = ($server->sockdomain == AF_INET) ? (sockaddr_in($hisaddr)) : (sockaddr_in6($hisaddr)); |
5 |
my $localsockaddr = getsockname($client); |
6 |
my ($lport, $laddr) = ($server->sockdomain == AF_INET) ? (sockaddr_in($localsockaddr)) : (sockaddr_in6($localsockaddr)); |
7 |
- my $nto_iaddr = ($server->sockdomain == AF_INET) ? (inet_ntoa($iaddr)) : (inet_ntop(AF_INET6, $iaddr)); |
8 |
- my $ton_iaddr = ($server->sockdomain == AF_INET) ? (inet_aton($iaddr)) : (inet_pton(AF_INET6, $iaddr)); |
9 |
- my $nto_laddr = ($server->sockdomain == AF_INET) ? (inet_ntoa($laddr)) : (inet_ntop(AF_INET6, $laddr)); |
10 |
+ my $nto_iaddr = ($server->sockdomain == AF_INET) ? (inet_ntoa($iaddr)) : (inet_ntop(AF_INET6(), $iaddr)); |
11 |
+ my $ton_iaddr = ($server->sockdomain == AF_INET) ? (inet_aton($iaddr)) : (inet_pton(AF_INET6(), $iaddr)); |
12 |
+ my $nto_laddr = ($server->sockdomain == AF_INET) ? (inet_ntoa($laddr)) : (inet_ntop(AF_INET6(), $laddr)); |
13 |
$nto_iaddr =~ s/::ffff://; |
14 |
$nto_laddr =~ s/::ffff://; |
15 |
|