aboutsummaryrefslogtreecommitdiff
path: root/net/isc-dhcp/files/dhcpd.init
diff options
context:
space:
mode:
authorPhilip Prindeville <philipp@redfish-solutions.com>2018-04-08 16:07:01 -0600
committerPhilip Prindeville <philipp@redfish-solutions.com>2018-04-08 16:31:28 -0600
commit6bfb46ebdbeae257f642668959c07717aac54b3c (patch)
tree497b54a054334d6764dce3dd5156b53caf1ac71e /net/isc-dhcp/files/dhcpd.init
parenta35ebccb267c20ddb294070a45a846a7102df11b (diff)
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>
Diffstat (limited to 'net/isc-dhcp/files/dhcpd.init')
-rw-r--r--net/isc-dhcp/files/dhcpd.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/isc-dhcp/files/dhcpd.init b/net/isc-dhcp/files/dhcpd.init
index fdcbe2490..8eb20d101 100644
--- a/net/isc-dhcp/files/dhcpd.init
+++ b/net/isc-dhcp/files/dhcpd.init
@@ -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; }