Use the newly introduced -W flag to netstat(1) to avoid truncated addresses.
This commit is contained in:
parent
080b7f4967
commit
84e268e3fc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74312
@ -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>) {
|
||||
|
Loading…
Reference in New Issue
Block a user