fix(adguard): handle empty clients list

Only render clients section when clients are configured.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ashisgreat22 2026-03-18 19:22:58 +01:00
parent 23696e7e79
commit 294b556542

View file

@ -98,6 +98,7 @@ in
querylog_file_enabled: true querylog_file_enabled: true
statistics_enabled: true statistics_enabled: true
${lib.optionalString (cfg.clients != []) ''
clients: clients:
persistent: persistent:
${lib.concatStringsSep "\n " ( ${lib.concatStringsSep "\n " (