mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-19 06:02:57 +00:00
wgengine: pass tun.NativeDevice to router
Signed-off-by: Dmytro Shynkevych <dmytro@tailscale.com>
This commit is contained in:

committed by
Dmytro Shynkevych

parent
9c914dc7dd
commit
635f7b99f1
@@ -262,3 +262,8 @@ func (t *TUN) InjectOutbound(packet []byte) error {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// Unwrap returns the underlying TUN device.
|
||||
func (t *TUN) Unwrap() tun.Device {
|
||||
return t.tdev
|
||||
}
|
||||
|
Reference in New Issue
Block a user