twitchyliquid64 / subnet

Simple, auditable & elegant VPN, built with TLS mutual authentication and TUN.
MIT License
1.06k stars 71 forks source link

Build error : unknown tls.Config field 'GetCertificate #13

Closed rinrynque closed 5 years ago

rinrynque commented 5 years ago

Hello, I'm getting an error when getting subnet :

> go get -u github.com/twitchyliquid64/subnet
# github.com/twitchyliquid64/subnet/subnet/conn
src/github.com/twitchyliquid64/subnet/subnet/conn/tls.go:68: unknown tls.Config field 'VerifyPeerCertificate' in struct literal

Found this but I don't have a clue how to fix it myself https://github.com/strukturag/spreed-webrtc/issues/278

twitchyliquid64 commented 5 years ago

Make sure you are using Go 1.8 or newer (that API was only introduced later).

On Sun, Dec 2, 2018, 9:51 AM rinrynque <notifications@github.com wrote:

Hello, I'm getting an error when getting subnet :

go get -u github.com/twitchyliquid64/subnet

github.com/twitchyliquid64/subnet/subnet/conn

src/github.com/twitchyliquid64/subnet/subnet/conn/tls.go:68 http://github.com/twitchyliquid64/subnet/subnet/connsrc/github.com/twitchyliquid64/subnet/subnet/conn/tls.go:68: unknown tls.Config field 'VerifyPeerCertificate' in struct literal

Found this but I don't have a clue how to fix this myself strukturag/spreed-webrtc#278 https://github.com/strukturag/spreed-webrtc/issues/278

— You are receiving this because you are subscribed to this thread.

rinrynque commented 5 years ago

Thanks ! It was that indeed (debian repos are old)