From aadb8d9d21938110e34af35c28fe7324cef809e4 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 6 May 2024 14:09:13 -0700 Subject: [PATCH] ipn/ipnlocal: don't send an empty BrowseToURL w/ WatchIPNBus NotifyInitialState I noticed this while working on the following fix to #11962. Updates #11962 Signed-off-by: Brad Fitzpatrick Change-Id: I4c5894d8899d1ae8c42f54ecfd4d05a4a7ac598c --- ipn/ipnlocal/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 6cb5855ce..77ab05ef8 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -2252,7 +2252,7 @@ func (b *LocalBackend) WatchNotifications(ctx context.Context, mask ipn.NotifyWa if mask&ipn.NotifyInitialState != 0 { ini.SessionID = sessionID ini.State = ptr.To(b.state) - if b.state == ipn.NeedsLogin { + if b.state == ipn.NeedsLogin && b.authURLSticky != "" { ini.BrowseToURL = ptr.To(b.authURLSticky) } }