From 4a5193900c0cee8bd67dd2d13907e2cd2979d749 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 31 Jan 2024 10:41:57 +0100 Subject: [PATCH] Services: Kea DHCP [new]: Kea DHCPv4 - omit comma when control agent is disabled. should fix https://github.com/opnsense/core/issues/7183 --- src/opnsense/service/templates/OPNsense/Kea/kea-dhcp4.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/service/templates/OPNsense/Kea/kea-dhcp4.conf b/src/opnsense/service/templates/OPNsense/Kea/kea-dhcp4.conf index 41d69aa71..ce2ba9332 100644 --- a/src/opnsense/service/templates/OPNsense/Kea/kea-dhcp4.conf +++ b/src/opnsense/service/templates/OPNsense/Kea/kea-dhcp4.conf @@ -59,9 +59,9 @@ ] }{% if not loop.last %},{% endif +%} {% endfor %} - ], + ] {% if not helpers.empty('OPNsense.Kea.ctrl_agent.general.enabled') %} - "hooks-libraries": [ + ,"hooks-libraries": [ { "library": "/usr/local/lib/kea/hooks/libdhcp_lease_cmds.so", "parameters": { }