Use the newly introduced -W flag to netstat(1) to avoid truncated addresses.

This commit is contained in:
Dag-Erling Smørgrav 2001-03-15 20:46:35 +00:00
parent 080b7f4967
commit 84e268e3fc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74312

View File

@ -53,7 +53,7 @@ sub gather() {
if (!defined($pid = open(PIPE, "-|"))) {
die("open(netstat): $!\n");
} elsif ($pid == 0) {
exec("/usr/bin/netstat", "-Aan");
exec("/usr/bin/netstat", "-AanW");
die("exec(netstat): $!\n");
}
while ($line = <PIPE>) {