summaryrefslogtreecommitdiff
path: root/data/templates/mdns-repeater
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-28 19:34:13 +0200
committerGitHub <noreply@github.com>2023-09-28 19:34:13 +0200
commitf6a87a32d61c0f9928824b2426da3c8510a4f111 (patch)
tree5dd0141587e2715065ab24dfe401cadfc78ae1d4 /data/templates/mdns-repeater
parent5fc286ae5262477ffd35c91044adfad0d6d59bd4 (diff)
parent39d30e2034d75823a958905aac7bc8427597fdac (diff)
downloadvyos-1x-vyos/1.4dev1.tar.gz
vyos-1x-vyos/1.4dev1.zip
Merge pull request #2321 from vyos/mergify/bp/sagitta/pr-2307vyos/1.4dev1
mdns: T5615: Allow controlling IP version to use for mDNS repeater (backport #2307)
Diffstat (limited to 'data/templates/mdns-repeater')
-rw-r--r--data/templates/mdns-repeater/avahi-daemon.conf.j2 (renamed from data/templates/mdns-repeater/avahi-daemon.j2)6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/templates/mdns-repeater/avahi-daemon.j2 b/data/templates/mdns-repeater/avahi-daemon.conf.j2
index e0dfd897e..d562c048f 100644
--- a/data/templates/mdns-repeater/avahi-daemon.j2
+++ b/data/templates/mdns-repeater/avahi-daemon.conf.j2
@@ -1,7 +1,7 @@
### Autogenerated by service_mdns-repeater.py ###
[server]
-use-ipv4=yes
-use-ipv6=yes
+use-ipv4={{ 'yes' if ip_version in ['ipv4', 'both'] else 'no' }}
+use-ipv6={{ 'yes' if ip_version in ['ipv6', 'both'] else 'no' }}
allow-interfaces={{ interface | join(', ') }}
{% if browse_domain is vyos_defined and browse_domain | length %}
browse-domains={{ browse_domain | join(', ') }}
@@ -17,6 +17,8 @@ disable-user-service-publishing=yes
publish-addresses=no
publish-hinfo=no
publish-workstation=no
+publish-aaaa-on-ipv4=no
+publish-a-on-ipv6=no
[reflector]
enable-reflector=yes