Parcourir la source

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

Signed-off-by: Joe Tsai <[email protected]>
Joe Tsai il y a 3 ans
Parent
commit
49bae7fd5c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 	Reconfig(*wgcfg.Config, *router.Config, *dns.Config, *tailcfg.Debug) error
 
 
 	// PeerForIP returns the node to which the provided IP routes,
 	// 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)
 	PeerForIP(netip.Addr) (_ PeerForIP, ok bool)
 
 
 	// GetFilter returns the current packet filter, if any.
 	// GetFilter returns the current packet filter, if any.