mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-16 18:08:40 +00:00
ipn: add missing check for nil Notify.Prefs
This was missed in 6afe26575cf155bd0baba8e4770bc49c0d55e2c1 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
parent
6afe26575c
commit
bb2cba0cd1
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user