From 98c9b5c81bb7a16f542c95c083166bc17b03f1a6 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 14 Apr 2022 09:20:47 +0900 Subject: [PATCH] Inspector: Fix missing log-facility when tftp protocol is used Closes-Bug: #1968937 Change-Id: I4bfa487e6c982c99314112a58da61d6e53935b90 --- templates/inspector_dnsmasq_tftp.erb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/inspector_dnsmasq_tftp.erb b/templates/inspector_dnsmasq_tftp.erb index 6cda44f5..a6455525 100644 --- a/templates/inspector_dnsmasq_tftp.erb +++ b/templates/inspector_dnsmasq_tftp.erb @@ -4,6 +4,9 @@ interface=<%= @dnsmasq_interface %> log-dhcp log-queries <% end %> +<% if ! @dnsmasq_log_facility.nil? %> +log-facility=<%= @dnsmasq_log_facility %> +<% end -%> <% @dnsmasq_ip_subnets_real.each do |s| -%> <% if s['tag'] and s['netmask'] -%> dhcp-range=set:<%= s['tag'] -%>,<%= s['ip_range'] -%>,<%= s['netmask'] -%>,10m