diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-06-23 15:27:19 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-06-23 15:27:19 +0100 |
commit | 54d24cbc56c012f30de902c2746899ffbf9154eb (patch) | |
tree | 41a770e36adcf78fd1398981695e254874cdaee9 /cmd/catbus-actuator-wakeonlan/main.go | |
parent | d5b2961bd2cc474d763d72ad1c180e7358e5fd6d (diff) |
only rebroadcast on connect, not constantly
Diffstat (limited to 'cmd/catbus-actuator-wakeonlan/main.go')
-rw-r--r-- | cmd/catbus-actuator-wakeonlan/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/catbus-actuator-wakeonlan/main.go b/cmd/catbus-actuator-wakeonlan/main.go index 6f4e62b..2649206 100644 --- a/cmd/catbus-actuator-wakeonlan/main.go +++ b/cmd/catbus-actuator-wakeonlan/main.go @@ -74,9 +74,9 @@ func main() { }, } - catbusOptions.RebroadcastDefaults = map[string][]byte{} + catbusOptions.DefaultPayloadByTopic = map[string][]byte{} for topic := range config.MACsByTopic { - catbusOptions.RebroadcastDefaults[topic] = []byte("off") + catbusOptions.DefaultPayloadByTopic[topic] = []byte("off") } catbus := catbus.NewClient(config.BrokerURI, catbusOptions) |