mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-27 10:47:35 +00:00
wgengine: remove Config.TUN argument.
This commit is contained in:
parent
0807e3e2f7
commit
440effb21a
@ -343,7 +343,6 @@ func tryEngine(logf logger.Logf, linkMon *monitor.Mon, name string) (e wgengine.
|
|||||||
tstun.Diagnose(logf, name)
|
tstun.Diagnose(logf, name)
|
||||||
return nil, false, err
|
return nil, false, err
|
||||||
}
|
}
|
||||||
conf.TUN = dev
|
|
||||||
}
|
}
|
||||||
e, err = wgengine.NewUserspaceEngine(logf, dev, conf)
|
e, err = wgengine.NewUserspaceEngine(logf, dev, conf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -133,9 +133,6 @@ func (e *userspaceEngine) GetInternals() (*tstun.Wrapper, *magicsock.Conn) {
|
|||||||
|
|
||||||
// Config is the engine configuration.
|
// Config is the engine configuration.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
// TUN is the TUN device used by the engine.
|
|
||||||
TUN tun.Device
|
|
||||||
|
|
||||||
// Router is the interface to OS networking APIs used to interface
|
// Router is the interface to OS networking APIs used to interface
|
||||||
// the OS with the Engine.
|
// the OS with the Engine.
|
||||||
Router router.Router
|
Router router.Router
|
||||||
|
Loading…
x
Reference in New Issue
Block a user