Allow more chars in listen-log.pl
This commit is contained in:
parent
d23bd1eada
commit
6b6eb79c5c
|
@ -26,7 +26,8 @@ while (1){
|
|||
($port, $hisiaddr) = sockaddr_in($hispaddr);
|
||||
# $host = gethostbyaddr($hisiaddr, AF_INET);
|
||||
$host=join(".",unpack("CCCC",$hisiaddr));
|
||||
$buf =~ y!a-zA-Z0-9.:,; _()[]{}?-!!cd;
|
||||
chomp($buf);
|
||||
$buf =~ y!a-zA-Z0-9.:,; _()[]{}<>/?-!!cd;
|
||||
print substr(scalar(localtime),11,8)," ",$host," ",$buf,"\n";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue