ginuerzh / gost

GO Simple Tunnel - a simple tunnel written in golang
MIT License
15.45k stars 2.42k forks source link

gost build error by the latest golang #1006

Open imajinyun opened 5 months ago

imajinyun commented 5 months ago

hi, I'm build the gost command occurred error by the latest golang, how to fix it?

➜ go version
go version go1.21.6 darwin/amd64
➜ gost git:(master) ✗ go build
# github.com/quic-go/quic-go/internal/qtls
/Users/xxx/.go/pkg/mod/github.com/quic-go/quic-go@v0.32.0/internal/qtls/go121.go:5:13: cannot use "The version of quic-go you're using can't be built on Go 1.21 yet. For more details, please see https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.21 yet. F...) as int value in variable declaration
3052 commented 3 weeks ago

use this instead

https://github.com/honwen/gost