Date: Thu, 14 Jan 2010 10:56:54 +0000 (UTC) From: Edwin Groothuis <edwin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r202281 - head/usr.bin/whois Message-ID: <201001141056.o0EAusZL010812@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: edwin Date: Thu Jan 14 10:56:54 2010 New Revision: 202281 URL: http://svn.freebsd.org/changeset/base/202281 Log: Make whois capable of searching for IPv6 addresses just like it can do for IPv4 addresses without having to explicetly specify that the ARIN server should be used to get the initial information PR: bin/128725 Submitted by: "Matt D. Harris" <mdh_lists@yahoo.com> MFC after: 1 week Modified: head/usr.bin/whois/whois.c Modified: head/usr.bin/whois/whois.c ============================================================================== --- head/usr.bin/whois/whois.c Thu Jan 14 10:40:54 2010 (r202280) +++ head/usr.bin/whois/whois.c Thu Jan 14 10:56:54 2010 (r202281) @@ -215,6 +215,10 @@ choose_server(char *domain) { char *pos, *retval; + if (strchr(domain, ':')) { + s_asprintf(&retval, "%s", ANICHOST); + return (retval); + } for (pos = strchr(domain, '\0'); pos > domain && *--pos == '.';) *pos = '\0'; if (*domain == '\0')
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001141056.o0EAusZL010812>