mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-16 18:08:40 +00:00
control/controlclient: remove dummy endpoint in endpoint stripping mode
The TODO is done. Magicsock doesn't require any endpoints to create an *endpoint now. Verified both in code and empirically: I can use the env knob and access everything. Change-Id: I4fe7ed5b11c5c5e94b21ef3d77be149daeab998a Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
parent
86a902b201
commit
3a94ece30c
@ -825,10 +825,7 @@ func (c *Direct) sendMapRequest(ctx context.Context, maxPolls int, cb func(*netm
|
|||||||
|
|
||||||
if Debug.StripEndpoints {
|
if Debug.StripEndpoints {
|
||||||
for _, p := range resp.Peers {
|
for _, p := range resp.Peers {
|
||||||
// We need at least one endpoint here for now else
|
p.Endpoints = nil
|
||||||
// other code doesn't even create the discoEndpoint.
|
|
||||||
// TODO(bradfitz): fix that and then just nil this out.
|
|
||||||
p.Endpoints = []string{"127.9.9.9:456"}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if Debug.StripCaps {
|
if Debug.StripCaps {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user