log errors - error handling still bad

rename folder
This commit is contained in:
Dylan Parker 2023-01-08 05:13:24 -06:00
parent 5eff7e1c08
commit 37ca09669a
3 changed files with 2 additions and 1 deletions

View File

@ -1,2 +1,2 @@
go-build: go-build:
go build cmd/http/main.go go build cmd/server/main.go

View File

@ -48,6 +48,7 @@ func (s *Session) proxyFrom(buf []byte) error {
s.updateTime = time.Now() s.updateTime = time.Now()
_, err := s.proxyConn.WriteToUDP(buf, s.caddr) _, err := s.proxyConn.WriteToUDP(buf, s.caddr)
if err != nil { if err != nil {
log.Println(err)
return err return err
} }