mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 13:18:53 +00:00
wgengine: remove SetNetInfoCallback method from Engine
LocalBackend can talk to magicsock on its own to do this without the "Engine" being involved. (Continuing a little side quest of cleaning up the Engine interface...) Updates #cleanup Change-Id: I8654acdca2b883b1bd557fdc0cfb90cd3a418a62 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
ad4c11aca1
commit
727b1432a8
@@ -1552,7 +1552,11 @@ func (b *LocalBackend) Start(opts ipn.Options) error {
|
||||
}
|
||||
cc.SetTKAHead(tkaHead)
|
||||
|
||||
b.e.SetNetInfoCallback(b.setNetInfo)
|
||||
if mc, err := b.magicConn(); err != nil {
|
||||
return fmt.Errorf("looking up magicsock: %w", err)
|
||||
} else {
|
||||
mc.SetNetInfoCallback(b.setNetInfo)
|
||||
}
|
||||
|
||||
blid := b.backendLogID.String()
|
||||
b.logf("Backend: logs: be:%v fe:%v", blid, opts.FrontendLogID)
|
||||
|
Reference in New Issue
Block a user