cmd/tailscale: don't notify for never-expiring sessions

Fixes tailscale/tailscale#469

Signed-off-by: Elias Naur <mail@eliasnaur.com>
pull/3/head
Elias Naur 4 years ago
parent 676447afda
commit 8f621e531a

@ -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."

Loading…
Cancel
Save