add tproxy support

This commit is contained in:
ginuerzh
2022-03-31 21:11:49 +08:00
parent 670a118c6d
commit 733655625a
4 changed files with 12 additions and 11 deletions

View File

@ -131,7 +131,11 @@ func main() {
services := buildService(cfg)
for _, svc := range services {
go svc.Serve()
svc := svc
go func() {
svc.Serve()
svc.Close()
}()
}
config.SetGlobal(cfg)

View File

@ -1,5 +1,5 @@
package main
const (
version = "3.0.0-beta.1"
version = "3.0.0-beta.2"
)