diff options
author | Philip Prindeville <philipp@redfish-solutions.com> | 2018-04-08 16:07:01 -0600 |
---|---|---|
committer | Philip Prindeville <philipp@redfish-solutions.com> | 2018-04-08 16:31:28 -0600 |
commit | 6bfb46ebdbeae257f642668959c07717aac54b3c (patch) | |
tree | 497b54a054334d6764dce3dd5156b53caf1ac71e /net/isc-dhcp/files/dhcpd.init | |
parent | a35ebccb267c20ddb294070a45a846a7102df11b (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.init | 2 |
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; } |