Add config options for ListenAddr & Interfaces

These options are helpful when the bridge is running on a multi-homed
device like a wireless router.
This commit is contained in:
Darell Tan
2023-08-03 23:28:52 +08:00
parent 3cfc3f68b0
commit 59b049faea
4 changed files with 50 additions and 0 deletions

View File

@@ -28,6 +28,25 @@ To compile `hap-z2m`, use:
go build -v -trimpath -ldflags="-s -w" ./cmd/...
Configuration
==============
The MQTT broker that Zigbee2MQTT connects to is specified using the following:
- Server
- Username
- Password
Additionally, these options control networking aspects for the bridge:
- `ListenAddr` can be used to bind to a specific port and/or address,
useful for selecting a fixed port for firewall rules.
- `Interfaces` limit which interfaces mDNS broadcasts appear on,
and which addresses to use when broadcasting.
These settings are optional and can be left blank.
License
========