control/controlclient, types/netmap: remove unused LocalPort field

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-06-19 16:31:54 -07:00
committed by Brad Fitzpatrick
parent 526b0b6890
commit a1e429f7c3
7 changed files with 19 additions and 43 deletions

View File

@@ -796,7 +796,7 @@ func (b *LocalBackend) setWgengineStatus(s *wgengine.Status, err error) {
if cc != nil {
if needUpdateEndpoints {
cc.UpdateEndpoints(0, s.LocalAddrs)
cc.UpdateEndpoints(s.LocalAddrs)
}
b.stateMachine()
}
@@ -1070,7 +1070,7 @@ func (b *LocalBackend) Start(opts ipn.Options) error {
b.mu.Unlock()
if endpoints != nil {
cc.UpdateEndpoints(0, endpoints)
cc.UpdateEndpoints(endpoints)
}
cc.SetStatusFunc(b.setClientStatus)

View File

@@ -258,9 +258,9 @@ func (cc *mockControl) SetNetInfo(ni *tailcfg.NetInfo) {
cc.called("SetNetInfo")
}
func (cc *mockControl) UpdateEndpoints(localPort uint16, endpoints []tailcfg.Endpoint) {
func (cc *mockControl) UpdateEndpoints(endpoints []tailcfg.Endpoint) {
// validate endpoint information here?
cc.logf("UpdateEndpoints: lp=%v ep=%v", localPort, endpoints)
cc.logf("UpdateEndpoints: ep=%v", endpoints)
cc.called("UpdateEndpoints")
}