fix bugs
This commit is contained in:
+1
-1
@@ -295,7 +295,7 @@ isipv6()
|
||||
IFS=':' read -ra parts <<< "$seg"
|
||||
for part in "${parts[@]}"; do
|
||||
[[ $part =~ ^[0-9a-fA-F]{1,4}$ ]] || { ok=0; break; }
|
||||
(( total++ ))
|
||||
total=$(( total + 1 ))
|
||||
done
|
||||
(( ok )) || break
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user