[tools/bgpscanner] Make isipv4() return 0 explicit

This commit is contained in:
Lorenzo Cogotti 2021-08-11 18:02:48 +02:00
parent c7a2417499
commit 705670d682
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ chkint() {
isip4() { isip4() {
for i in 1 2 3 4; do for i in 1 2 3 4; do
case $(printf %s\\n "$1" | cut -d. -f"$i") in case $(printf %s\\n "$1" | cut -d. -f"$i") in
[0-9]|[0-9][0-9]|[0-1][0-9][0-9]|2[0-4][0-9]|25[0-5]) ;; [0-9]|[0-9][0-9]|[0-1][0-9][0-9]|2[0-4][0-9]|25[0-5]) return 0;;
*) return 1;; *) return 1;;
esac esac
done done