diff --git a/go.mod b/go.mod index c2f281d..239c67e 100755 --- a/go.mod +++ b/go.mod @@ -14,7 +14,8 @@ require ( github.com/pkg/errors v0.9.1 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.7.0 - github.com/wencaiwulue/kubevpn/v2 v2.2.3 + github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240310152443-8e7dd67d9301 + golang.org/x/crypto v0.18.0 golang.org/x/net v0.20.0 golang.org/x/sys v0.16.0 golang.zx2c4.com/wireguard/windows v0.5.3 @@ -110,7 +111,6 @@ require ( github.com/theupdateframework/notary v0.7.0 // indirect github.com/xlab/treeprint v1.2.0 // indirect go.starlark.net v0.0.0-20230525235612-a134d8f9ddca // indirect - golang.org/x/crypto v0.18.0 // indirect golang.org/x/exp v0.0.0-20240205201215-2c58cdc269a3 // indirect golang.org/x/mod v0.15.0 // indirect golang.org/x/oauth2 v0.16.0 // indirect diff --git a/go.sum b/go.sum index 13789d9..3498262 100755 --- a/go.sum +++ b/go.sum @@ -875,8 +875,24 @@ github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852/go.mod h1:tw github.com/vishvananda/netns v0.0.0-20180720170159-13995c7128cc/go.mod h1:ZjcWmFBXmLKZu9Nxj3WKYEafiSqer2rnvPr0en9UNpI= github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= github.com/vishvananda/netns v0.0.0-20200728191858-db3c7e526aae/go.mod h1:DD4vA1DwXk04H54A1oHXtwZmA0grkVMdPxx/VGLCah0= -github.com/wencaiwulue/kubevpn/v2 v2.2.3 h1:S1I0AM+GR20oG8cddTrrArZME6bx3ERPiLNJl3XV2ek= -github.com/wencaiwulue/kubevpn/v2 v2.2.3/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.3-0.20240217103841-597023bdeabb h1:aHJJ0Wn6zLL4CULwkzC9ZmAEIeI8mujdrbd1TWVVJZs= +github.com/wencaiwulue/kubevpn/v2 v2.2.3-0.20240217103841-597023bdeabb/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.3-0.20240217121107-1f32a129b698 h1:0qg7Xm5dmb4J8H+0SskgY+/YXXViNVEvtjMJxLvaI5M= +github.com/wencaiwulue/kubevpn/v2 v2.2.3-0.20240217121107-1f32a129b698/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.3-0.20240219134652-6e679cc2f189 h1:xsC1bc95FrPIPL45JGPX/MKULg8wQRCBPtHG3TkSgMo= +github.com/wencaiwulue/kubevpn/v2 v2.2.3-0.20240219134652-6e679cc2f189/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240308033807-b424ad27bf1e h1:6T7o0FqoKSUGibNqf5BM41jYg38znzdYmyzcuNXbeaA= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240308033807-b424ad27bf1e/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240308135218-94d2d902b54c h1:V+sgPys34I8KpRMRWkELh/9GpWaOgh5SJf5A8UXwDWo= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240308135218-94d2d902b54c/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240309131239-8499ee724b16 h1:whyTtu0KS5kw+SF5c6WzUCBYSHyfJrXLyqeU4INCf3M= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240309131239-8499ee724b16/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240309140523-f313595e229c h1:7I4V2DA4VRSGPlUpcmiF6YevP4DBDCBahGBclFgGHyg= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240309140523-f313595e229c/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240310135103-614021cecfc1 h1:BGJNbZOwR5l4FcysNbIVr361E2nvxSTeIjRub3Vb0rg= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240310135103-614021cecfc1/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240310152443-8e7dd67d9301 h1:bERxR3czEFc1+jIzbBFfxiC0dQ/eWp+M8gXHQK/BnO4= +github.com/wencaiwulue/kubevpn/v2 v2.2.4-0.20240310152443-8e7dd67d9301/go.mod h1:zQ0OPDSjBv24+nfsWtNcb94fowfjk2i5bBSt1dBIfwE= github.com/willf/bitset v1.1.11-0.20200630133818-d5bec3311243/go.mod h1:RjeCKbqT1RxIR/KWY6phxZiaY1IyutSBfGjNPySAYV4= github.com/willf/bitset v1.1.11/go.mod h1:83CECat5yLh5zVOf4P1ErAgKA5UDvKtgyUABdr3+MjI= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= diff --git a/pkg/client/udphandler.go b/pkg/client/udphandler.go index 677079f..3bac687 100644 --- a/pkg/client/udphandler.go +++ b/pkg/client/udphandler.go @@ -46,7 +46,7 @@ func UDPHandler(s *stack.Stack, device *net.Interface, udpAddr string) func(id s log.Fatal(err) } node.Client = &core.Client{ - Connector: core.GvisorUDPOverTCPTunnelConnector(stack.TransportEndpointID{}), + Connector: core.GvisorUDPOverTCPTunnelConnector(), Transporter: core.TCPTransporter(), } forwardChain := core.NewChain(5, node)