Skip to content

Commit 5bb800c

Browse files
authored
Merge pull request #30 from messede-degod/master
cat /proc/net/arp when arp bin is not available
2 parents 11d1c2c + 8c58d3e commit 5bb800c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/whatserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ else
396396
netstat -in 2>/dev/null
397397
}
398398
echo -e "${CB}>>>>> ARP table${CN}"
399-
command -v arp >/dev/null && arp -an 2>/dev/null | COL
399+
{ command -v arp >/dev/null && arp -an 2>/dev/null || cat /proc/net/arp; } | COL
400400
fi
401401

402402
command -v netstat >/dev/null && {

0 commit comments

Comments
 (0)