From 8c58d3e412800205560cc679b7fb9eb4a91e289c Mon Sep 17 00:00:00 2001 From: Messede Date: Fri, 2 Aug 2024 16:40:04 +0000 Subject: [PATCH] update: cat /proc/net/arp when arp bin is not available --- tools/whatserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/whatserver.sh b/tools/whatserver.sh index ec6aa2c..787dc74 100755 --- a/tools/whatserver.sh +++ b/tools/whatserver.sh @@ -396,7 +396,7 @@ else netstat -in 2>/dev/null } echo -e "${CB}>>>>> ARP table${CN}" - command -v arp >/dev/null && arp -an 2>/dev/null | COL + { command -v arp >/dev/null && arp -an 2>/dev/null || cat /proc/net/arp; } | COL fi command -v netstat >/dev/null && {