diff options
| author | Brad Fitzpatrick <bradfitz@tailscale.com> | 2021-07-19 07:52:55 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@tailscale.com> | 2021-07-19 07:52:55 -0700 |
| commit | e2eaae8224faf5ba2e5ae494e9ee357a60af2799 (patch) | |
| tree | 7c8b400d6d0f1fbe43af7d744b3cab48745c96e9 /cmd | |
| parent | 2ba36c294b51b672073a36a599a61c758d0ffafa (diff) | |
| download | tailscale-e2eaae8224faf5ba2e5ae494e9ee357a60af2799.tar.xz tailscale-e2eaae8224faf5ba2e5ae494e9ee357a60af2799.zip | |
cmd/derpprobe: add in a delay to wait for mesh info to sync
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/derpprobe/derpprobe.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmd/derpprobe/derpprobe.go b/cmd/derpprobe/derpprobe.go index 363d4983d..c0e11a9e6 100644 --- a/cmd/derpprobe/derpprobe.go +++ b/cmd/derpprobe/derpprobe.go @@ -211,6 +211,13 @@ func probeNodePair(ctx context.Context, dm *tailcfg.DERPMap, from, to *tailcfg.D } defer toc.Close() + // Wait a bit for from's node to hear about to existing on the + // other node in the region, in the case where the two nodes + // are different. + if from.Name != to.Name { + time.Sleep(100 * time.Millisecond) // pretty arbitrary + } + // Make a random packet pkt := make([]byte, 8) crand.Read(pkt) |
