Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why doesn't the go code run? #1

Open
3 tasks
wwwiretap opened this issue Apr 17, 2024 · 1 comment
Open
3 tasks

Why doesn't the go code run? #1

wwwiretap opened this issue Apr 17, 2024 · 1 comment

Comments

@wwwiretap
Copy link

We are happy to answer your questions about the code or discuss technical ideas.

Please complete the following checklist (by adding [x]):

  • I have searched open and closed issues for duplicates
  • This isn't a feature request
  • This is not a report about my app not working as expected

root@db1:/code/proton# git clone https://github.com/ProtonVPN/wireguard-go.git
Cloning into 'wireguard-go'...
remote: Enumerating objects: 6194, done.
remote: Counting objects: 100% (6194/6194), done.
remote: Compressing objects: 100% (1639/1639), done.
remote: Total 6194 (delta 4522), reused 6177 (delta 4505), pack-reused 0
Receiving objects: 100% (6194/6194), 1.54 MiB | 7.67 MiB/s, done.
Resolving deltas: 100% (4522/4522), done.
root@db1:
/code/proton# cd wireguard-go/
root@db1:/code/proton/wireguard-go# ls
conn device format_test.go go.mod go.sum ipc LICENSE main.go main_windows.go Makefile ratelimiter README.md replay rwcancel tai64n tests tun version.go
root@db1:
/code/proton/wireguard-go# make
go build -v -o "wireguard-go"
golang.zx2c4.com/wireguard/conn

golang.zx2c4.com/wireguard/conn

conn/bind_std.go:144:19: bind.PeekLookAtSocketFd4 undefined (type *StdNetBind has no field or method PeekLookAtSocketFd4)
conn/bind_std.go:154:19: bind.PeekLookAtSocketFd6 undefined (type *StdNetBind has no field or method PeekLookAtSocketFd6)
make[1]: *** [Makefile:20: wireguard-go] Error 1
make: *** [Makefile:12: generate-version-and-build] Error 2

@ImNoahDev
Copy link

did you find a fix to this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants