|
|
@ -684,6 +684,7 @@ func getNotificationTargets(config *serverConfig) *event.TargetList { |
|
|
|
|
|
|
|
|
|
|
|
for id, args := range config.Notify.MQTT { |
|
|
|
for id, args := range config.Notify.MQTT { |
|
|
|
if args.Enable { |
|
|
|
if args.Enable { |
|
|
|
|
|
|
|
args.RootCAs = globalRootCAs |
|
|
|
newTarget, err := target.NewMQTTTarget(id, args) |
|
|
|
newTarget, err := target.NewMQTTTarget(id, args) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
logger.LogIf(context.Background(), err) |
|
|
|
logger.LogIf(context.Background(), err) |
|
|
@ -768,6 +769,7 @@ func getNotificationTargets(config *serverConfig) *event.TargetList { |
|
|
|
|
|
|
|
|
|
|
|
for id, args := range config.Notify.Webhook { |
|
|
|
for id, args := range config.Notify.Webhook { |
|
|
|
if args.Enable { |
|
|
|
if args.Enable { |
|
|
|
|
|
|
|
args.RootCAs = globalRootCAs |
|
|
|
newTarget := target.NewWebhookTarget(id, args) |
|
|
|
newTarget := target.NewWebhookTarget(id, args) |
|
|
|
if err := targetList.Add(newTarget); err != nil { |
|
|
|
if err := targetList.Add(newTarget); err != nil { |
|
|
|
logger.LogIf(context.Background(), err) |
|
|
|
logger.LogIf(context.Background(), err) |
|
|
|