stunner: add Stunner.MaxTries option

This commit is contained in:
Brad Fitzpatrick
2020-05-04 22:08:08 -07:00
parent 495796fff1
commit 828aa6dcb0
2 changed files with 21 additions and 3 deletions

View File

@@ -42,6 +42,10 @@ func TestStun(t *testing.T) {
Send: localConn.WriteTo,
Endpoint: func(server, ep string, d time.Duration) { epCh <- ep },
Servers: stunServers,
MaxTries: map[string]int{
stunServers[0]: 2,
stunServers[1]: 2,
},
}
stun1Err := make(chan error)