mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
wgengine: pass in an explicit router.Router, rather than a generator.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:

committed by
Dave Anderson

parent
9ea5cbf81f
commit
2b4bfeda1a
@@ -5,14 +5,13 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/tailscale/wireguard-go/tun"
|
||||
"tailscale.com/types/logger"
|
||||
)
|
||||
|
||||
// NewFakeRouter returns a Router that does nothing when called and
|
||||
// always returns nil errors.
|
||||
func NewFake(logf logger.Logf, _ tun.Device) (Router, error) {
|
||||
return fakeRouter{logf: logf}, nil
|
||||
// NewFake returns a Router that does nothing when called and always
|
||||
// returns nil errors.
|
||||
func NewFake(logf logger.Logf) Router {
|
||||
return fakeRouter{logf: logf}
|
||||
}
|
||||
|
||||
type fakeRouter struct {
|
||||
|
Reference in New Issue
Block a user