mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-18 02:48:40 +00:00
net/tstun: document exported function.
Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
parent
016de16b2e
commit
22d53fe784
@ -28,6 +28,7 @@ import (
|
||||
// discovery.
|
||||
const minimalMTU = 1280
|
||||
|
||||
// New returns a tun.Device for the requested device name.
|
||||
func New(logf logger.Logf, tunName string) (tun.Device, error) {
|
||||
dev, err := tun.CreateTUN(tunName, minimalMTU)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user