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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy