net/tstun: document exported function.
Signed-off-by: David Anderson <danderson@tailscale.com>pull/1599/head
parent
016de16b2e
commit
22d53fe784
|
@ -28,6 +28,7 @@ import (
|
||||||
// discovery.
|
// discovery.
|
||||||
const minimalMTU = 1280
|
const minimalMTU = 1280
|
||||||
|
|
||||||
|
// New returns a tun.Device for the requested device name.
|
||||||
func New(logf logger.Logf, tunName string) (tun.Device, error) {
|
func New(logf logger.Logf, tunName string) (tun.Device, error) {
|
||||||
dev, err := tun.CreateTUN(tunName, minimalMTU)
|
dev, err := tun.CreateTUN(tunName, minimalMTU)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue