From 37ca09669aab166b023d63ca65b4e60698043e03 Mon Sep 17 00:00:00 2001 From: Dylan Parker Date: Sun, 8 Jan 2023 05:13:24 -0600 Subject: [PATCH] log errors - error handling still bad rename folder --- Makefile | 2 +- cmd/{http => server}/main.go | 0 pkg/udpproxy/session.go | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename cmd/{http => server}/main.go (100%) 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 }