From 25aab738efac8a4e3176012becb7500c8cb09509 Mon Sep 17 00:00:00 2001 From: "Leon M. Busch-George" Date: Wed, 20 Sep 2023 23:42:08 +0200 Subject: [PATCH] base-files: ipcalc.sh: make check slightly more future-proof The previous code handling the equal-condition might be removed or altered in the future and the case might be overlooked. Signed-off-by: Leon M. Busch-George --- package/base-files/files/bin/ipcalc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/bin/ipcalc.sh b/package/base-files/files/bin/ipcalc.sh index 25114219a1..827cb5dc2e 100755 --- a/package/base-files/files/bin/ipcalc.sh +++ b/package/base-files/files/bin/ipcalc.sh @@ -89,7 +89,7 @@ BEGIN { exit(1) } - if (ipaddr > start && ipaddr < end) { + if (ipaddr >= start && ipaddr <= end) { print "warning: ipaddr inside range - this might not be supported in future releases of Openwrt" > "/dev/stderr" # turn this into an error after Openwrt 24 has been released # exit(1) -- 2.30.2