From fcce60266917266ff0ac315110040d4976a66b88 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 8 Nov 2007 15:32:10 +0000 Subject: [PATCH] Fix a problem where peerhost wasn't being populated correctly due to the IPv6 support change git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@40 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/usr/sbin/xcatd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server-2.0/usr/sbin/xcatd b/xCAT-server-2.0/usr/sbin/xcatd index 509661513..ecae911b8 100755 --- a/xCAT-server-2.0/usr/sbin/xcatd +++ b/xCAT-server-2.0/usr/sbin/xcatd @@ -278,7 +278,7 @@ until ($quit) { if (defined $tmp->{value}) { $domain = $tmp->{value}; } - $peerhost = gethostbyaddr(inet_aton($connection->peerhost),AF_INET); + $peerhost = gethostbyaddr($connection->peeraddr),AF_INET6); $peerhost =~ s/\.$domain\.*$//; $peerhost =~ s/-eth\d*$//; $peerhost =~ s/-myri\d*$//;