Skip to content

Commit

Permalink
Merge pull request #66 from systemli/fix/goss_test_alternative_port
Browse files Browse the repository at this point in the history
Add support to configure `no-rfc5780` and `no-stun-backward-compatibility`
  • Loading branch information
doobry-systemli authored Aug 6, 2023
2 parents 02a22d2 + ea9ba7b commit 2d670d9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
---
coturn_listening_port: 3478
# The alt listening ports require `coturn_no_rfc5780: False`
#coturn_alt_listening_port:
coturn_tls_listening_port: 5349
#coturn_alt_tls_listening_port:

coturn_no_rfc5780: True
coturn_no_stun_backward_compability: True

# If no IP(s) specified then all IPv4 and IPv6 system IPs will be used for listening.
coturn_listening_ips: []

Expand Down
6 changes: 5 additions & 1 deletion templates/test_coturn.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ port:
{% if coturn_tls %}
tcp:{{ coturn_tls_listening_port }}:
listening: true
tcp:{{ coturn_listening_port|int + 1 }}:
{% if not coturn_no_rfc5780 %}
tcp:{{ coturn_tls_listening_port|int + 1 }}:
listening: true
{% endif %}
{% endif %}
udp:{{ coturn_listening_port }}:
listening: true
{% if not coturn_no_rfc5780 %}
udp:{{ coturn_listening_port|int + 1 }}:
listening: true
{% endif %}
service:
coturn:
enabled: true
Expand Down
4 changes: 2 additions & 2 deletions templates/turnserver.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -800,15 +800,15 @@ no-tlsv1_1
# Strongly encouraged to use this option to decrease gain factor in STUN
# binding responses.
#
no-rfc5780
{% if not coturn_no_rfc5780 %}#{% endif %}no-rfc5780

# Disable handling old STUN Binding requests and disable MAPPED-ADDRESS
# attribute in binding response (use only the XOR-MAPPED-ADDRESS).
#
# Strongly encouraged to use this option to decrease gain factor in STUN
# binding responses.
#
no-stun-backward-compatibility
{% if not coturn_no_stun_backward_compability %}#{% endif %}no-stun-backward-compatibility

# Only send RESPONSE-ORIGIN attribute in binding response if RFC5780 is enabled.
#
Expand Down

0 comments on commit 2d670d9

Please sign in to comment.