aboutsummaryrefslogtreecommitdiff
path: root/cmd/catbus-actuator-wakeonlan
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-06-23 15:27:19 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-06-23 15:27:19 +0100
commit54d24cbc56c012f30de902c2746899ffbf9154eb (patch)
tree41a770e36adcf78fd1398981695e254874cdaee9 /cmd/catbus-actuator-wakeonlan
parentd5b2961bd2cc474d763d72ad1c180e7358e5fd6d (diff)
only rebroadcast on connect, not constantly
Diffstat (limited to '')
-rw-r--r--cmd/catbus-actuator-wakeonlan/main.go4
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)