Skip to content

Commit

Permalink
Support old-style host plus port as well as new-style address strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jbradberry committed Jan 22, 2024
1 parent 798c4e3 commit 81e3b72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions roles/setup/templates/receptor.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
{% if receptor_peers | default([]) %}
{% for peer in receptor_peers %}
- {{ peer['protocol'] }}-peer:
{% if 'port' in peer -%}
address: {{ peer['address'] | default(peer['host']) }}:{{ peer['port'] }}
{% else %}
address: {{ peer['address'] }}
{%- endif %}
redial: true
{% if receptor_tls %}
tls: tls_client
Expand Down

0 comments on commit 81e3b72

Please sign in to comment.