diff options
author | 2021-09-23 12:07:19 +0200 | |
---|---|---|
committer | 2021-09-23 09:54:01 -0600 | |
commit | 217ac1016bc54b47418fb606740498fcfbcfd9e6 (patch) | |
tree | b6efcb4a7c56c40ba92c7fad6524f003ee25f56b /tun/operateonfd.go | |
parent | tun: avoid leaking sock fd in CreateTUN error cases (diff) | |
download | wireguard-go-217ac1016bc54b47418fb606740498fcfbcfd9e6.tar.xz wireguard-go-217ac1016bc54b47418fb606740498fcfbcfd9e6.zip |
tun: make operateonfd.go build tags more specific
(*NativeTun).operateOnFd is only used on darwin and freebsd. Adjust the
build tags accordingly.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/operateonfd.go')
-rw-r--r-- | tun/operateonfd.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tun/operateonfd.go b/tun/operateonfd.go index aab7116..bc80453 100644 --- a/tun/operateonfd.go +++ b/tun/operateonfd.go @@ -1,5 +1,5 @@ -//go:build !windows -// +build !windows +//go:build darwin || freebsd +// +build darwin freebsd /* SPDX-License-Identifier: MIT * |