mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 04:55:31 +00:00
net/netcheck: don't panic if a region has no Nodes
Updates #13728 Signed-off-by: Andrew Dunham <andrew@du.nham.ca> Change-Id: I1e8319d6b2da013ae48f15113b30c9333e69cc0b
This commit is contained in:
parent
36cb2e4e5f
commit
8ee7f82bf4
@ -503,6 +503,10 @@ func makeProbePlanInitial(dm *tailcfg.DERPMap, ifState *netmon.State) (plan prob
|
|||||||
plan = make(probePlan)
|
plan = make(probePlan)
|
||||||
|
|
||||||
for _, reg := range dm.Regions {
|
for _, reg := range dm.Regions {
|
||||||
|
if len(reg.Nodes) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
var p4 []probe
|
var p4 []probe
|
||||||
var p6 []probe
|
var p6 []probe
|
||||||
for try := 0; try < 3; try++ {
|
for try := 0; try < 3; try++ {
|
||||||
|
Loading…
Reference in New Issue
Block a user