diff options
author | Christian Breunig <christian@breunig.cc> | 2023-09-28 18:22:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 18:22:19 +0200 |
commit | 34772d635fa5a44db8c944b6f0a84f184a704f1d (patch) | |
tree | d37d1297c5110cca0374e3b25beb6174b806b93f /data/templates/mdns-repeater | |
parent | 852e9c3328e61f5d0b92a9efca376aec94533f2b (diff) | |
parent | 3a3123485f2ea7b253caa1c49f19c82a0eaa0b37 (diff) | |
download | vyos-1x-34772d635fa5a44db8c944b6f0a84f184a704f1d.tar.gz vyos-1x-34772d635fa5a44db8c944b6f0a84f184a704f1d.zip |
Merge pull request #2307 from indrajitr/mdns-ipversions
mdns: T5615: Allow controlling IP version to use for mDNS repeater
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 |