summaryrefslogtreecommitdiff
path: root/src/validators/interface-address
diff options
context:
space:
mode:
Diffstat (limited to 'src/validators/interface-address')
-rw-r--r--src/validators/interface-address3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validators/interface-address b/src/validators/interface-address
new file mode 100644
index 0000000..4c20395
--- /dev/null
+++ b/src/validators/interface-address
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+ipaddrcheck --is-ipv4-host $1 || ipaddrcheck --is-ipv6-host $1