From a199438e53326010e2537e74e28142e4c4f1fb4c Mon Sep 17 00:00:00 2001 From: NANDO9322 Date: Thu, 8 Jan 2026 20:37:07 -0300 Subject: [PATCH] ajuste ip --- backend/internal/router/router.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/backend/internal/router/router.go b/backend/internal/router/router.go index d4498ef..cec8178 100755 --- a/backend/internal/router/router.go +++ b/backend/internal/router/router.go @@ -107,15 +107,6 @@ func NewRouter() http.Handler { applicationHandler := handlers.NewApplicationHandler(applicationService) paymentHandler := handlers.NewPaymentHandler(credentialsService) - // --- IP HELPER --- - GetClientIP := func(r *http.Request) string { - forwarded := r.Header.Get("X-Forwarded-For") - if forwarded != "" { - return forwarded - } - return r.RemoteAddr - } - // --- HEALTH CHECK --- mux.HandleFunc("GET /health", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) @@ -132,7 +123,6 @@ func NewRouter() http.Handler { response := map[string]interface{}{ "message": "🐴 GoHorseJobs API is running!", - "ip": GetClientIP(r), "docs": "/docs", "health": "/health", "version": "1.0.0",