mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 05:07:33 +00:00
ipn: add missing check for nil Notify.Prefs
This was missed in 6afe26575c
Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@@ -106,7 +106,7 @@ func (n Notify) String() string {
|
||||
if n.State != nil {
|
||||
fmt.Fprintf(&sb, "state=%v ", *n.State)
|
||||
}
|
||||
if n.Prefs.Valid() {
|
||||
if n.Prefs != nil && n.Prefs.Valid() {
|
||||
fmt.Fprintf(&sb, "%v ", n.Prefs.Pretty())
|
||||
}
|
||||
if n.NetMap != nil {
|
||||
|
Reference in New Issue
Block a user