net/netcheck: add an informative payload in the netcheck UDP helper packets

Per comment from @normanr:
0a5ab533c1 (r40401954)

Updates #188
reviewable/pr527/r1
Brad Fitzpatrick 4 years ago
parent 0a5ab533c1
commit cf74e9039e

@ -682,7 +682,7 @@ func (c *Client) GetReport(ctx context.Context, dm *tailcfg.DERPMap) (*Report, e
// So do that for now. In the future we might want to classify networks
// that do and don't require this separately. But for now help it.
const documentationIP = "203.0.113.1"
rs.pc4Hair.WriteTo([]byte("sets up mapping"), &net.UDPAddr{IP: net.ParseIP(documentationIP), Port: 12345})
rs.pc4Hair.WriteTo([]byte("tailscale netcheck; see https://github.com/tailscale/tailscale/issues/188"), &net.UDPAddr{IP: net.ParseIP(documentationIP), Port: 12345})
if f := c.GetSTUNConn4; f != nil {
rs.pc4 = f()

Loading…
Cancel
Save