Add relay server address for the status

This commit is contained in:
Zoltán Papp
2024-07-10 22:17:54 +02:00
parent 4e75e15ea1
commit 83b83ccfd2
7 changed files with 50 additions and 11 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import (
// ProbeResult holds the info about the result of a relay probe request
type ProbeResult struct {
URI *stun.URI
URI string
Err error
Addr string
}
@@ -176,7 +176,7 @@ func ProbeAll(
wg.Add(1)
go func(res *ProbeResult, stunURI *stun.URI) {
defer wg.Done()
res.URI = stunURI
res.URI = stunURI.String()
res.Addr, res.Err = fn(ctx, stunURI)
}(&results[i], uri)
}