ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/myhttpd/httpd.pl
(Generate patch)

Comparing Coro/myhttpd/httpd.pl (file contents):
Revision 1.7 by root, Sat Aug 11 00:37:32 2001 UTC vs.
Revision 1.8 by root, Sat Aug 11 03:41:01 2001 UTC

415 } 415 }
416 416
417 close $fh; 417 close $fh;
418} 418}
419 419
420sub access_check {
421 my $self = shift;
422 my $whois = ::ip_request($self->{remote_addr});
423
424 if ($whois =~ /^\*cy: (\S+)/m) {
425 $self->slog(9, "COUNTRY($1)");
426 } else {
427 $self->slog(9, "no country($whois)");
428 }
429}
430
4311; 4201;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines