bug: résultats unifiés trop tôt
This commit is contained in:
parent
85e4289a69
commit
9ffb5af972
10
dumpclients
10
dumpclients
|
@ -40,9 +40,9 @@ function print_conn() {
|
||||||
function print_host() {
|
function print_host() {
|
||||||
local -a hosts
|
local -a hosts
|
||||||
if [ -n "$*" ]; then
|
if [ -n "$*" ]; then
|
||||||
while read ip state; do
|
while read count ip state; do
|
||||||
resolv_hosts hosts "$ip"
|
resolv_hosts hosts "$ip"
|
||||||
echo "${hosts:-$ip}" "$state"
|
echo "$count" "${hosts:-$ip}" "$state"
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
cat
|
cat
|
||||||
|
@ -67,6 +67,6 @@ LANG=C netstat -tn ${all:+-a} |
|
||||||
filter_proto "$proto" |
|
filter_proto "$proto" |
|
||||||
filter_port "$port" |
|
filter_port "$port" |
|
||||||
print_conn |
|
print_conn |
|
||||||
csort -u |
|
csort |
|
||||||
print_host $resolve |
|
"$scriptdir/umatch" -c -F "" |
|
||||||
"$scriptdir/umatch" -c -F ""
|
print_host $resolve
|
||||||
|
|
Loading…
Reference in New Issue