Skip to content

Commit 7ffd99c

Browse files
authored
fix: use DiscoPing (partially reverts #11306) (#11744)
1 parent 3d85cdf commit 7ffd99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tailnet/conn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ func (c *Conn) Status() *ipnstate.Status {
376376
func (c *Conn) Ping(ctx context.Context, ip netip.Addr) (time.Duration, bool, *ipnstate.PingResult, error) {
377377
errCh := make(chan error, 1)
378378
prChan := make(chan *ipnstate.PingResult, 1)
379-
go c.wireguardEngine.Ping(ip, tailcfg.PingTSMP, func(pr *ipnstate.PingResult) {
379+
go c.wireguardEngine.Ping(ip, tailcfg.PingDisco, func(pr *ipnstate.PingResult) {
380380
if pr.Err != "" {
381381
errCh <- xerrors.New(pr.Err)
382382
return

0 commit comments

Comments
 (0)