stunner: support IPv6, add latency info to callbacks, use unique TxIDs per retry

And some more docs.

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2020-02-27 09:23:20 -08:00
parent 00ad93ec25
commit c185e6b4b0
3 changed files with 111 additions and 71 deletions

View File

@@ -40,7 +40,7 @@ func TestStun(t *testing.T) {
s := &Stunner{
Send: localConn.WriteTo,
Endpoint: func(ep string) { epCh <- ep },
Endpoint: func(server, ep string, d time.Duration) { epCh <- ep },
Servers: stunServers,
}