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:
co-authored by
Claude Sonnet 4.6
parent
9fd0772e91
commit
50812749ea
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user