summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-05-17 15:37:09 +0200
committerGitHub <noreply@github.com>2023-05-17 15:37:09 +0200
commitd9c495144d1bcd22e5450fdaa268f34e0c70e636 (patch)
treef318be35bd51f0804ac3a9254359c423de4de605 /data/templates
parente02a722a3e95696d83abf7fe78893fbb67f40ad3 (diff)
parentbbd4bcb4c972f6df43c40b119419abcea3daad21 (diff)
downloadvyos-1x-d9c495144d1bcd22e5450fdaa268f34e0c70e636.tar.gz
vyos-1x-d9c495144d1bcd22e5450fdaa268f34e0c70e636.zip
Merge pull request #2009 from indrajitr/mdns-improvements
mdns: T5227: Add support for browse domains and service filters
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/mdns-repeater/avahi-daemon.j26
1 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/mdns-repeater/avahi-daemon.j2 b/data/templates/mdns-repeater/avahi-daemon.j2
index 65bb5a306..3aaa7fc82 100644
--- a/data/templates/mdns-repeater/avahi-daemon.j2
+++ b/data/templates/mdns-repeater/avahi-daemon.j2
@@ -2,6 +2,9 @@
use-ipv4=yes
use-ipv6=yes
allow-interfaces={{ interface | join(', ') }}
+{% if browse_domain is vyos_defined and browse_domain | length %}
+browse-domains={{ browse_domain | join(', ') }}
+{% endif %}
disallow-other-stacks=no
[wide-area]
@@ -16,3 +19,6 @@ publish-workstation=no
[reflector]
enable-reflector=yes
+{% if allow_service is vyos_defined and allow_service | length %}
+reflect-filters={{ allow_service | join(', ') }}
+{% endif %}