From b9f13df51979ff38e4a9578f982cc608e3bb2c0d Mon Sep 17 00:00:00 2001 From: Ethel Morgan Date: Mon, 22 Jun 2020 21:25:47 +0100 Subject: add rebroadcasting to package catbus --- cmd/catbus-actuator-wakeonlan/main.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmd') diff --git a/cmd/catbus-actuator-wakeonlan/main.go b/cmd/catbus-actuator-wakeonlan/main.go index 37efbbe..6f4e62b 100644 --- a/cmd/catbus-actuator-wakeonlan/main.go +++ b/cmd/catbus-actuator-wakeonlan/main.go @@ -73,6 +73,12 @@ func main() { } }, } + + catbusOptions.RebroadcastDefaults = map[string][]byte{} + for topic := range config.MACsByTopic { + catbusOptions.RebroadcastDefaults[topic] = []byte("off") + } + catbus := catbus.NewClient(config.BrokerURI, catbusOptions) if err := catbus.Connect(); err != nil { -- cgit v1.2.3