diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2023-08-16 15:23:40 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2023-08-16 15:23:43 -0700 |
| commit | b256c319c08c50bd52e617c500a37e566fbbb432 (patch) | |
| tree | 5d5ee711ff693b81ac0a2f0fbff70c9c5cd4c929 /ipn/backend.go | |
| parent | 57da1f150199957fbb3659df3a607cfb2af74317 (diff) | |
| download | tailscale-bradfitz/gui_netmap.tar.xz tailscale-bradfitz/gui_netmap.zip | |
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
Diffstat (limited to 'ipn/backend.go')
| -rw-r--r-- | ipn/backend.go | 22 |
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) } |
