Make ipn.Options.Prefs a pointer.

This is a prelude to making it truly optional, once state
management has moved into the backend. For now though, it's
still required. This change is just isolating the bubbling-up
of the pointerification into other layers.

Signed-Off-By: David Anderson <dave@natulte.net>
This commit is contained in:
David Anderson
2020-02-03 15:58:40 -08:00
committed by Dave Anderson
parent f6f154193f
commit 21280ca2d1
8 changed files with 17 additions and 9 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ func (h *Handle) Start(opts Options) error {
h.netmapCache = nil
h.engineStatusCache = EngineStatus{}
h.stateCache = NoState
h.prefsCache = opts.Prefs
if opts.Prefs != nil {
h.prefsCache = *opts.Prefs
}
xopts := opts
xopts.Notify = h.notify
return h.b.Start(xopts)