netstack: further sequester with own go.mod and go.sum

In order to avoid even the flirtation with passing on these dependencies
to ordinary consumers of wireguard-go, this commit makes a new go.mod
that's entirely separate from the root one.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2021-01-21 00:24:01 +01:00
parent 1d4eb2727a
commit fcc8ad05df
4 changed files with 400 additions and 376 deletions

9
tun/netstack/go.mod Normal file
View File

@@ -0,0 +1,9 @@
module golang.zx2c4.com/wireguard/tun/netstack
go 1.15
require (
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
golang.zx2c4.com/wireguard v0.0.20201118
gvisor.dev/gvisor v0.0.0-20210109011639-2fb7a49fea98
)