diff --git a/Makefile b/Makefile index 75b3ced..a084843 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,2 @@ go-build: - go build cmd/http/main.go \ No newline at end of file + go build cmd/server/main.go \ No newline at end of file diff --git a/cmd/http/main.go b/cmd/server/main.go similarity index 100% rename from cmd/http/main.go rename to cmd/server/main.go diff --git a/pkg/udpproxy/session.go b/pkg/udpproxy/session.go index 423f55f..a82519b 100644 --- a/pkg/udpproxy/session.go +++ b/pkg/udpproxy/session.go @@ -48,6 +48,7 @@ func (s *Session) proxyFrom(buf []byte) error { s.updateTime = time.Now() _, err := s.proxyConn.WriteToUDP(buf, s.caddr) if err != nil { + log.Println(err) return err }