summaryrefslogtreecommitdiffhomepage
path: root/ipn/backend.go
diff options
context:
space:
mode:
Diffstat (limited to 'ipn/backend.go')
-rw-r--r--ipn/backend.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/ipn/backend.go b/ipn/backend.go
index 806598aa2..7f13bf517 100644
--- a/ipn/backend.go
+++ b/ipn/backend.go
@@ -64,6 +64,7 @@ const (
NotifyInitialState // if set, the first Notify message (sent immediately) will contain the current State + BrowseToURL
NotifyInitialPrefs // if set, the first Notify message (sent immediately) will contain the current Prefs
NotifyInitialNetMap // if set, the first Notify message (sent immediately) will contain the current NetMap
+ NotifyGUINetMap // if set, only use the Notify.GUINetMap; Notify.Netmap will always be nil. Also impacts NotifyInitialNetMap.
NotifyNoPrivateKeys // if set, private keys that would normally be sent in updates are zeroed out
)
@@ -81,13 +82,14 @@ type Notify struct {
// For State InUseOtherUser, ErrMessage is not critical and just contains the details.
ErrMessage *string
- LoginFinished *empty.Message // non-nil when/if the login process succeeded
- State *State // if non-nil, the new or current IPN state
- Prefs *PrefsView // if non-nil && Valid, the new or current preferences
- NetMap *netmap.NetworkMap // if non-nil, the new or current netmap
- Engine *EngineStatus // if non-nil, the new or current wireguard stats
- BrowseToURL *string // if non-nil, UI should open a browser right now
- BackendLogID *string // if non-nil, the public logtail ID used by backend
+ LoginFinished *empty.Message // non-nil when/if the login process succeeded
+ State *State // if non-nil, the new or current IPN state
+ Prefs *PrefsView // if non-nil && Valid, the new or current preferences
+ //NetMap *netmap.NetworkMap // if non-nil, the new or current netmap
+ GUINetMap *netmap.GUINetworkMap // if non-nil, the new or current netmap
+ Engine *EngineStatus // if non-nil, the new or current wireguard stats
+ BrowseToURL *string // if non-nil, UI should open a browser right now
+ BackendLogID *string // if non-nil, the public logtail ID used by backend
// FilesWaiting if non-nil means that files are buffered in
// the Tailscale daemon and ready for local transfer to the
@@ -133,9 +135,9 @@ func (n Notify) String() string {
if n.Prefs != nil && n.Prefs.Valid() {
fmt.Fprintf(&sb, "%v ", n.Prefs.Pretty())
}
- if n.NetMap != nil {
- sb.WriteString("NetMap{...} ")
- }
+ // if n.NetMap != nil {
+ // sb.WriteString("NetMap{...} ")
+ // }
if n.Engine != nil {
fmt.Fprintf(&sb, "wg=%v ", *n.Engine)
}