fix: corregir argumentos faltantes en fmt.Sprintf y usar net.JoinHostPort

- generateModelFileContent: faltaban 4 args (item Update, Delete comment/func/model)
- generateControllerFileContent: faltaban 2 args (Delete func y mensaje)
- generateRouteFileContent: faltaba 1 arg (comentario Delete)
- servidor_controller: usar net.JoinHostPort para compatibilidad con IPv6

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro GD
2026-07-13 18:19:19 +00:00
co-authored by Claude Sonnet 4.6
parent 9fd0772e91
commit 50812749ea
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -393,7 +393,7 @@ func PingConexion(c *fiber.Ctx) error {
}
// Si la BD no conecta, probar al menos TCP (puerto abierto)
tcpAddr := fmt.Sprintf("%s:%s", host, puerto)
tcpAddr := net.JoinHostPort(host, puerto)
inicioTCP := time.Now()
conn, errTCP := net.DialTimeout("tcp", tcpAddr, 3*time.Second)
if errTCP == nil {