--- web/cgi-bin/logo.cgi 2004/03/25 22:48:47 1.2 +++ web/cgi-bin/logo.cgi 2006/02/14 22:17:36 1.3 @@ -19,6 +19,11 @@ my($imagepath) = `$setbg -r -p \'$pattern\' -b echo -f chomp $imagepath; $imagepath =~ s/$dir/$url/; +# Check for IPv6 +if($ENV{SERVER_ADDR} =~ /:/) { + $imagepath = "http://www.i-scream.org/images/ipv6-logo.gif"; +} + print "Content-type: text/plain\n\n"; print $imagepath;