You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
err:=core.Push.SendPushNotification(core.Push.PushDevices[v.DeviceID], v.NetName+" updated", "The VPN configuration for "+v.NetName+" has been updated")
287
+
iferr!=nil {
288
+
log.WithFields(log.Fields{
289
+
"err": err,
290
+
}).Error("failed to send push notification")
291
+
}
292
+
}
293
+
294
+
// send push notification to the device that just had the VPN disabled
err:=core.Push.SendPushNotification(core.Push.PushDevices[v.DeviceID], v.NetName+" disabled", "The VPN configuration for "+v.NetName+" has been disabled")
err:=core.Push.SendPushNotification(core.Push.PushDevices[v.DeviceID], v.NetName+" updated", "The VPN configuration for "+v.NetName+" has been updated")
410
+
iferr!=nil {
411
+
log.WithFields(log.Fields{
412
+
"err": err,
413
+
}).Error("failed to send push notification")
414
+
}
415
+
}
416
+
417
+
// send push notification to the device that just had the VPN disabled
err:=core.Push.SendPushNotification(core.Push.PushDevices[v.DeviceID], v.NetName+" disabled", "The VPN configuration for "+v.NetName+" has been disabled")
0 commit comments