2
0
Эх сурвалжийг харах

wgengine: fix typo in Engine.PeerForIP (#5912)

Signed-off-by: Joe Tsai <[email protected]>
Joe Tsai 3 жил өмнө
parent
commit
49bae7fd5c
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      wgengine/wgengine.go

+ 1 - 1
wgengine/wgengine.go

@@ -79,7 +79,7 @@ type Engine interface {
 	Reconfig(*wgcfg.Config, *router.Config, *dns.Config, *tailcfg.Debug) error
 
 	// PeerForIP returns the node to which the provided IP routes,
-	// if any. If none is found, (nil, nil) is returned.
+	// if any. If none is found, (nil, false) is returned.
 	PeerForIP(netip.Addr) (_ PeerForIP, ok bool)
 
 	// GetFilter returns the current packet filter, if any.