Merge pull request #2226 from manics/supplemental-addresses

Enable additional addresses to be added to certificates
This commit is contained in:
Antoine Legrand 2018-02-06 13:51:54 +01:00 committed by GitHub
commit bb4446e94c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,6 +33,10 @@ IP.{{ idx + 1 }} = 127.0.0.1
{% if supplementary_addresses_in_ssl_keys is defined %}
{% set is = idx + 1 %}
{% for addr in supplementary_addresses_in_ssl_keys %}
{% if addr | ipaddr %}
IP.{{ is + loop.index }} = {{ addr }}
{% else %}
DNS.{{ is + loop.index }} = {{ addr }}
{% endif %}
{% endfor %}
{% endif %}