net/tstun, tsnet: make happier on WASI

Also fix a js/wasm issue with tsnet in the process. (same issue as WASI)

Updates #8320
Fixes #8315

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2023-06-11 17:36:26 -07:00
committed by Brad Fitzpatrick
parent 167e154bcc
commit 1543e233e6
2 changed files with 12 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
//go:build !js
//go:build !wasm
// Package tun creates a tuntap device, working around OS-specific
// quirks if necessary.