Skip to content

Commit bf2dfc8

Browse files
committed
added AVAHI_INTERFACES option
1 parent 55ef8d6 commit bf2dfc8

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ _all of those variants are automatically build and generated in one go_
5050

5151
## Changelogs
5252

53+
* 2025-11-21
54+
* added `AVAHI_INTERFACES` env to control avahi configuration option: `allow-interfaces`
5355
* 2025-09-02
5456
* improved `[global]` setting `vfs objects = streams_xattr`
5557
* `streams_xattr` is needed for macOS / iOS integration
@@ -197,6 +199,10 @@ If you experience Problems, take a look at this file: [TROUBLESHOOTING.md](TROUB
197199
* _optional_ name of avahi samba service
198200
* _default:_ _hostname_
199201

202+
* __AVAHI\_INTERFACES__
203+
* _optional_ set value for avahis `allow-interfaces` config option.
204+
* _default:_ listens to all interfaces
205+
200206
* __AVAHI\_DISABLE__
201207
* _optional_
202208
* default not set - set to any value to disable avahi Service

‎scripts/entrypoint.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ if [ ! -f "$INITALIZED" ]; then
274274
done
275275

276276
[ ! -z ${AVAHI_NAME+x} ] && echo ">> ZEROCONF: custom avahi samba.service name: $AVAHI_NAME" && sed -i 's/%h/'"$AVAHI_NAME"'/g' /etc/avahi/services/samba.service
277-
[ ! -z ${AVAHI_NAME+x} ] && echo ">> ZEROCONF: custom avahi avahi-daemon.conf host-name: $AVAHI_NAME" && sed -i "s/#host-name=foo/host-name=${AVAHI_NAME}/" /etc/avahi/avahi-daemon.conf
277+
[ ! -z ${AVAHI_NAME+x} ] && echo ">> ZEROCONF: custom avahi avahi-daemon.conf host-name: $AVAHI_NAME" && sed -i "s/#host-name=.*/host-name=${AVAHI_NAME}/" /etc/avahi/avahi-daemon.conf
278+
[ ! -z ${AVAHI_INTERFACES+x} ] && echo ">> ZEROCONF: custom avahi avahi-daemon.conf allow-interfaces: $AVAHI_INTERFACES" && sed -i "s/#allow-interfaces=.*/allow-interfaces=${AVAHI_INTERFACES}/" /etc/avahi/avahi-daemon.conf
278279

279280
echo ">> ZEROCONF: samba.service file"
280281
echo "############################### START ####################################"

0 commit comments

Comments
 (0)