fix: support port configuration of dns forwarder
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-01-09 17:54:49 +01:00
parent c19f3c9db4
commit d0db9e6944
2 changed files with 21 additions and 9 deletions

View File

@ -176,7 +176,11 @@ options {
{% if bind9_options.forwarders is defined and bind9_options.forwarders | length > 0 %}
forwarders {
{% for forwarder in bind9_options.forwarders %}
{{ forwarder }};
{% if forwarder.port is defined and forwarder.port | length > 0 %}
{{ forwarder.ip }} port {{ forwarder.port }};
{% else %}
{{ forwarder.ip }};
{% endif %}
{% endfor %}
};
{% else %}