compiler: use go 1.12

This commit is contained in:
nadoo 2019-03-05 22:30:22 +08:00
parent 19acda9ee0
commit 8c922db612
4 changed files with 7 additions and 2 deletions

2
go.mod
View File

@ -21,7 +21,7 @@ require (
github.com/xtaci/kcp-go v5.0.7+incompatible github.com/xtaci/kcp-go v5.0.7+incompatible
golang.org/x/crypto v0.0.0-20190228161510-8dd112bcdc25 golang.org/x/crypto v0.0.0-20190228161510-8dd112bcdc25
golang.org/x/net v0.0.0-20190301231341-16b79f2e4e95 // indirect golang.org/x/net v0.0.0-20190301231341-16b79f2e4e95 // indirect
golang.org/x/sys v0.0.0-20190303192550-c2f5717e611c // indirect golang.org/x/sys v0.0.0-20190305064518-30e92a19ae4a // indirect
) )
// Replace dependency modules with local developing copy // Replace dependency modules with local developing copy

2
go.sum
View File

@ -41,3 +41,5 @@ golang.org/x/sys v0.0.0-20190303122642-d455e41777fc h1:8EoQ+alqRKjWXD8k4lJE91+f2
golang.org/x/sys v0.0.0-20190303122642-d455e41777fc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190303122642-d455e41777fc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190303192550-c2f5717e611c h1:AXm9RSDBofvoECjrx/I1fceu1mdoJP5zCjxjsOmyGgI= golang.org/x/sys v0.0.0-20190303192550-c2f5717e611c h1:AXm9RSDBofvoECjrx/I1fceu1mdoJP5zCjxjsOmyGgI=
golang.org/x/sys v0.0.0-20190303192550-c2f5717e611c/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190303192550-c2f5717e611c/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190305064518-30e92a19ae4a h1:wsSB0WNK6x5F2PxWYOQpGTzp/IH7X8V603VJwSXZUWc=
golang.org/x/sys v0.0.0-20190305064518-30e92a19ae4a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=

View File

@ -32,6 +32,9 @@ import (
const VERSION = "0.7.0" const VERSION = "0.7.0"
func main() { func main() {
// TODO: remove this line when Go1.13 is released.
os.Setenv("GODEBUG", os.Getenv("GODEBUG")+",tls13=1")
// read configs // read configs
confInit() confInit()

View File

@ -100,7 +100,7 @@ func (s *RedirProxy) Serve(c net.Conn) {
// loop request // loop request
if c.LocalAddr().String() == tgt.String() { if c.LocalAddr().String() == tgt.String() {
log.F("[redir] loop request detected") log.F("[redir] %s <-> %s, unallowed request to redir port", c.RemoteAddr(), tgt)
return return
} }