From 2dd92dc2b746d607fbf791439086dd4e4f8f8212 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 16 Mar 2015 18:59:29 -0700 Subject: [PATCH] Allow default match mode to be configured --- dhcpd/index.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dhcpd/index.cgi b/dhcpd/index.cgi index bae03b53a..e650bc5d8 100755 --- a/dhcpd/index.cgi +++ b/dhcpd/index.cgi @@ -72,9 +72,10 @@ if ($st[7] != $config{'dhcpd_size'} || $st[9] != $config{'dhcpd_mtime'}) { # Create lookup type HTML # XXX change text, add to lookup_* -$matches = ui_select("match", undef, [ [0,$text{'index_match0'},"selected"], - [1,$text{'index_match1'},""], - [2,$text{'index_match2'},""] ]); +$matches = ui_select("match", $config{'match_default'} || 0, + [ [0, $text{'index_match0'} ], + [1, $text{'index_match1'} ], + [2, $text{'index_match2'} ] ]); # get top-level hosts foreach $h (&find("host", $conf)) {