isc-dhcp: fix typeof regex for IP address pattern

Missing backslash in "\d+" for last digit of dotted quad.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
This commit is contained in:
Philip Prindeville
2018-04-08 16:07:01 -06:00
parent a35ebccb26
commit 6bfb46ebdb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ static_hosts() {
typeof() {
echo "$1" | awk '
/^\d+\.\d+\.\d+\.d+$/ { print "ip\n"; next; }
/^\d+\.\d+\.\d+\.\d+$/ { print "ip\n"; next; }
/^(true|false)$/ { print "bool\n"; next; }
/^\d+$/ { print "integer\n"; next; }
/^"[^"]*"$/ { print "string\n"; next; }