Just a tiny trick. If you're on an environment where only Go 1.17+ is available, you might encounter the following error when running the built binary:
$ ./bin/linux-amd64/gotun
panic: qtls.CertificateRequestInfo doesn't match
goroutine 1 [running]:
github.com/marten-seemann/qtls-go1-16.init.0()
In this case, you may want to use this oneliner to build the binary in a temporary Docker container with Go 1.16:
docker run --rm -v $(pwd):/build -w /build -u $(id -u):$(id -g) -e HOME=/build golang:1.16 make
So then:
$ ./bin/linux-amd64/gotun
./bin/linux-amd64/gotun: No config file!
Usage: ./bin/linux-amd64/gotun [options] config-file
Just a tiny trick. If you're on an environment where only Go 1.17+ is available, you might encounter the following error when running the built binary:
In this case, you may want to use this oneliner to build the binary in a temporary Docker container with Go 1.16:
So then: