„gaboshlib/g_valid_ip.bashfunc“ ändern

This commit is contained in:
olli 2023-06-05 13:44:33 +02:00
parent 7c857289e6
commit a676d94eca

View File

@ -1,7 +1,7 @@
#!/bin/bash
function g_valid_ip {
g_valid_ipv4 && return 0
g_valid_ipv6 && return 0
g_valid_ipv4 $1 && return 0
g_valid_ipv6 $1 && return 0
return 1
}