@@ -374,30 +374,31 @@ func TestDERP(t *testing.T) {
374
374
ctx = context .Background ()
375
375
report = derphealth.Report {}
376
376
opts = & derphealth.ReportOptions {
377
- DERPMap : & tailcfg.DERPMap {Regions : map [int ]* tailcfg.DERPRegion {
378
- 1 : {
379
- EmbeddedRelay : true ,
380
- RegionID : 999 ,
381
- Nodes : []* tailcfg.DERPNode {{
382
- Name : "badstun" ,
383
- RegionID : 999 ,
384
- HostName : "badstun.example.com" ,
385
- STUNPort : 19302 ,
386
- STUNOnly : true ,
387
- InsecureForTests : true ,
388
- ForceHTTP : true ,
389
- }, {
390
- Name : "goodstun" ,
391
- RegionID : 999 ,
392
- HostName : "stun.l.google.com" ,
393
- STUNPort : 19302 ,
394
- STUNOnly : true ,
395
- InsecureForTests : true ,
396
- ForceHTTP : true ,
397
- }},
377
+ DERPMap : & tailcfg.DERPMap {
378
+ Regions : map [int ]* tailcfg.DERPRegion {
379
+ 1 : {
380
+ EmbeddedRelay : true ,
381
+ RegionID : 999 ,
382
+ Nodes : []* tailcfg.DERPNode {{
383
+ Name : "badstun" ,
384
+ RegionID : 999 ,
385
+ HostName : "badstun.example.com" ,
386
+ STUNPort : 19302 ,
387
+ STUNOnly : true ,
388
+ InsecureForTests : true ,
389
+ ForceHTTP : true ,
390
+ }, {
391
+ Name : "goodstun" ,
392
+ RegionID : 999 ,
393
+ HostName : "stun.l.google.com" ,
394
+ STUNPort : 19302 ,
395
+ STUNOnly : true ,
396
+ InsecureForTests : true ,
397
+ ForceHTTP : true ,
398
+ }},
399
+ },
398
400
},
399
401
},
400
- },
401
402
}
402
403
)
403
404
@@ -430,22 +431,23 @@ func TestDERP(t *testing.T) {
430
431
ctx = context .Background ()
431
432
report = derphealth.Report {}
432
433
opts = & derphealth.ReportOptions {
433
- DERPMap : & tailcfg.DERPMap {Regions : map [int ]* tailcfg.DERPRegion {
434
- 1 : {
435
- EmbeddedRelay : true ,
436
- RegionID : 999 ,
437
- Nodes : []* tailcfg.DERPNode {{
438
- Name : "badstun" ,
439
- RegionID : 999 ,
440
- HostName : "badstun.example.com" ,
441
- STUNPort : 19302 ,
442
- STUNOnly : true ,
443
- InsecureForTests : true ,
444
- ForceHTTP : true ,
445
- }},
434
+ DERPMap : & tailcfg.DERPMap {
435
+ Regions : map [int ]* tailcfg.DERPRegion {
436
+ 1 : {
437
+ EmbeddedRelay : true ,
438
+ RegionID : 999 ,
439
+ Nodes : []* tailcfg.DERPNode {{
440
+ Name : "badstun" ,
441
+ RegionID : 999 ,
442
+ HostName : "badstun.example.com" ,
443
+ STUNPort : 19302 ,
444
+ STUNOnly : true ,
445
+ InsecureForTests : true ,
446
+ ForceHTTP : true ,
447
+ }},
448
+ },
446
449
},
447
450
},
448
- },
449
451
}
450
452
)
451
453
0 commit comments