mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-23 17:18:42 +00:00
wgengine/magicsock: allow a CSV list for pretendpoint
Load Balancers often have more than one ingress IP, so allowing us to add multiple means we can offer multiple options. Updates #12578 Change-Id: I4aa49a698d457627d2f7011796d665c67d4c7952 Signed-off-by: Lee Briggs <lee@leebriggs.co.uk>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
c6af5bbfe8
commit
b546a6e758
@@ -920,10 +920,12 @@ func (c *Conn) determineEndpoints(ctx context.Context) ([]tailcfg.Endpoint, erro
|
||||
}
|
||||
|
||||
// Temporarily (2024-07-08) during investigations, allow setting
|
||||
// a pretend endpoint for testing NAT traversal scenarios.
|
||||
// pretend endpoint(s) for testing NAT traversal scenarios.
|
||||
// TODO(bradfitz): probably promote this to the config file.
|
||||
// https://github.com/tailscale/tailscale/issues/12578
|
||||
addAddr(pretendpoint(), tailcfg.EndpointExplicitConf)
|
||||
for _, ap := range pretendpoints() {
|
||||
addAddr(ap, tailcfg.EndpointExplicitConf)
|
||||
}
|
||||
|
||||
// Update our set of endpoints by adding any endpoints that we
|
||||
// previously found but haven't expired yet. This also updates the
|
||||
|
Reference in New Issue
Block a user