|
|
@ -322,6 +322,9 @@ func (a *App) updateNotification(service jni.Object, state ipn.State) error {
|
|
|
|
// returns a new timer that triggers when the user should be notified
|
|
|
|
// returns a new timer that triggers when the user should be notified
|
|
|
|
// again.
|
|
|
|
// again.
|
|
|
|
func (a *App) notifyExpiry(service jni.Object, expiry time.Time) *time.Timer {
|
|
|
|
func (a *App) notifyExpiry(service jni.Object, expiry time.Time) *time.Timer {
|
|
|
|
|
|
|
|
if expiry.IsZero() {
|
|
|
|
|
|
|
|
return nil
|
|
|
|
|
|
|
|
}
|
|
|
|
d := time.Until(expiry)
|
|
|
|
d := time.Until(expiry)
|
|
|
|
var title string
|
|
|
|
var title string
|
|
|
|
const msg = "Reauthenticate to maintain the connection to your network."
|
|
|
|
const msg = "Reauthenticate to maintain the connection to your network."
|
|
|
|