Merge branch 'main' of github.com:LandaMm/hsp-go

This commit is contained in:
2025-04-18 13:46:25 +02:00
4 changed files with 27 additions and 14 deletions

View File

@ -37,6 +37,7 @@ func (r *Router) Handle(conn net.Conn) error {
// TODO: Ability to keep connection alive
packet, err := dupl.ReadPacket()
if err != nil {
dupl.WritePacket(NewErrorResponse(err).ToPacket())
return err
}
@ -51,4 +52,3 @@ func (r *Router) Handle(conn net.Conn) error {
}
return errors.New("Not Found")
}