Skip to content

Commit b43cf33

Browse files
committed
fix: use TSMP for pings and checking reachability
1 parent 4071f17 commit b43cf33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tailnet/conn.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -670,12 +670,12 @@ func (c *Conn) Status() *ipnstate.Status {
670670
return sb.Status()
671671
}
672672

673-
// Ping sends a Disco ping to the Wireguard engine.
673+
// Ping sends a ping to the Wireguard engine.
674674
// The bool returned is true if the ping was performed P2P.
675675
func (c *Conn) Ping(ctx context.Context, ip netip.Addr) (time.Duration, bool, *ipnstate.PingResult, error) {
676676
errCh := make(chan error, 1)
677677
prChan := make(chan *ipnstate.PingResult, 1)
678-
go c.wireguardEngine.Ping(ip, tailcfg.PingDisco, func(pr *ipnstate.PingResult) {
678+
go c.wireguardEngine.Ping(ip, tailcfg.PingTSMP, func(pr *ipnstate.PingResult) {
679679
if pr.Err != "" {
680680
errCh <- xerrors.New(pr.Err)
681681
return

0 commit comments

Comments
 (0)