From 9475801ebe3bec27635343a6b1daa7e7ff51a5ef Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 17 Oct 2022 21:28:32 -0700 Subject: [PATCH] ipn/ipnlocal: fix E.G.G. port number accounting Change-Id: Id35461fdde79448372271ba54f6e6af586f2304d Signed-off-by: Brad Fitzpatrick --- cmd/tailscale/cli/up.go | 2 +- ipn/ipnlocal/local.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tailscale/cli/up.go b/cmd/tailscale/cli/up.go index d93058956..071ef79ea 100644 --- a/cmd/tailscale/cli/up.go +++ b/cmd/tailscale/cli/up.go @@ -501,7 +501,7 @@ func runUp(ctx context.Context, args []string) (retErr error) { fatalf("%s", err) } if justEditMP != nil { - justEditMP.EggSet = true + justEditMP.EggSet = egg _, err := localClient.EditPrefs(ctx, justEditMP) return err } diff --git a/ipn/ipnlocal/local.go b/ipn/ipnlocal/local.go index 407233eb7..e6ac4701f 100644 --- a/ipn/ipnlocal/local.go +++ b/ipn/ipnlocal/local.go @@ -2347,7 +2347,7 @@ func (b *LocalBackend) doSetHostinfoFilterServices(hi *tailcfg.Hostinfo) { } peerAPIServices := b.peerAPIServicesLocked() if b.egg { - peerAPIServices = append(peerAPIServices, tailcfg.Service{Proto: "egg"}) + peerAPIServices = append(peerAPIServices, tailcfg.Service{Proto: "egg", Port: 1}) } b.mu.Unlock()