opencoff / go-tunnel

TLS/SSL Tunnel - A modern STunnel replacement written in golang
GNU General Public License v2.0
294 stars 42 forks source link

build fails with errors around ratelimit #4

Closed nergdron closed 4 years ago

nergdron commented 4 years ago
$ make
./build -s
Building git:v0.4.3-0-ge29e45d76b10-dirty, linux-amd64 statically linked ..
   gotun: gotun .. 
# github.com/opencoff/go-tunnel/gotun
gotun/server.go:56:7: undefined: ratelimit.PerIPRateLimiter
gotun/server.go:90:26: not enough arguments in call to ratelimit.New
    have (uint, number)
    want (int, int, int)
gotun/server.go:95:13: undefined: ratelimit.NewPerIP
gotun/server.go:402:11: p.grl.Limit undefined (type *ratelimit.RateLimiter has no field or method Limit)
make: *** [Makefile:7: bin] Error 1

this occurs on both master and with the v0.4.3 tag. I'm on Ubuntu 20.04, go version 1.14.4.

opencoff commented 4 years ago

Updated code and fixed the issue. New version tagged 0.4.4.