From 9b101bd6afdef1925d02b47f902d3818515d80ba Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 21 Oct 2021 10:36:30 -0700 Subject: [PATCH] net/tstun: don't compile the code New constructor on js/wasm Updates #3157 Change-Id: I81603edf3e69e6f1517b0074eef6b648f2981c50 Signed-off-by: Brad Fitzpatrick --- net/tstun/tun.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/tstun/tun.go b/net/tstun/tun.go index fde2a2ad7..d04725fcd 100644 --- a/net/tstun/tun.go +++ b/net/tstun/tun.go @@ -2,6 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +//go:build !js +// +build !js + // Package tun creates a tuntap device, working around OS-specific // quirks if necessary. package tstun