It seems wireguard-go is not exactly cross-platfrom at the moment, this is what
happens at the moment when compiling os mac os:
go build -o wireguard-go
./main.go:94:11: undefined: CreateTUNFromFile
./main.go:108:11: undefined: UAPIOpen
./main.go:142:18: too many arguments in call to Daemonize
./main.go:165:15: undefined: UAPIListen
./tun_darwin.go:178:2: cannot use device (type *NativeTUN) as type TUNDevice in
*NativeTUN does not implement TUNDevice (missing File method)
make: *** [wireguard-go] Error 2
(Darwin Kernel Version 17.5.0: Mon Jan 29 02:17:30 PST 2018;
I noticed there was some discussion about not having a mac available to test
cross-platform code. I do.
If there is anything I can do to help to make the code work cross-platform,
please let me know.
WireGuard mailing list