supplementary_addresses_in_ssl_keys can be a hostname

This commit is contained in:
Simon Li 2017-11-16 14:38:49 +00:00
parent c1267004ef
commit 27a1a697e7
No known key found for this signature in database
GPG key ID: F604A75EB0CBF584

View file

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