Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb43cf33

Browse files
committed
fix: use TSMP for pings and checking reachability
1 parent4071f17 commitb43cf33

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
returnsb.Status()
671671
}
672672

673-
// Ping sends aDiscoping 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(chanerror,1)
677677
prChan:=make(chan*ipnstate.PingResult,1)
678-
goc.wireguardEngine.Ping(ip,tailcfg.PingDisco,func(pr*ipnstate.PingResult) {
678+
goc.wireguardEngine.Ping(ip,tailcfg.PingTSMP,func(pr*ipnstate.PingResult) {
679679
ifpr.Err!="" {
680680
errCh<-xerrors.New(pr.Err)
681681
return

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp