Optionally show ISP info for private LAN clients using the server's public IP
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- docker, php
- Área
- backend, networking
Línea de trabajo
Read backend/getIP_ipInfo_apikey.php and backend/getIP_serverPublicIp.php, then trace how getIP.php handles private client addresses and calls the existing ipinfo API and offline database fallback. Check the option and its Docker environment variable, plus the documentation in doc.md and doc_docker.md. Done means private LAN clients can optionally see the server public IP's ISP while keeping their own IP displayed, with the existing behavior preserved when disabled or lookup fails.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Closes #862
Before: when a client on the same LAN as the server opens the speed test (e.g. 192.168.1.23), getIP.php sees a private IP and skips ISP detection, so it only shows "Private IPv4 access".
After: if $USE_SERVER_PUBLIC_IP_FOR_PRIVATE_CLIENTS = true; is set in backend/getIP_ipInfo_apikey.php (or USE_SERVER_PUBLIC_IP_FOR_PRIVATE_CLIENTS=true in Docker), private clients get the ISP info of the server's public IP, shown with their own IP. It's off by default, so nothing changes unless you turn it on.
How: the server gets its public IP from ipinfo.io/ip (using the API token if one is set) and caches it for an hour in backend/getIP_serverPublicIp.php, which is gitignored. The lookup then goes through the existing ipinfo API, with the offline db as a fallback. I pulled the API-then-offline-db chain into a small getIspInfo() helper so both paths use it. If the public IP can't be fetched, the response is the same as before. I also documented the option in doc.md and doc_docker.md.
I tested it locally with PHP 8.3 and the offline db. It's unchanged when off, public clients are unchanged too, private clients get ISP info when on, and it falls back cleanly when the lookup fails. I used Claude to help write this.
- Lenguaje dominante
- JavaScript
- Estrellas
- 15.3k
- Forks
- 2.5k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de librespeed/speedtest
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
librespeed/speedtest#880 ·
-
Add support for Open Container Initiative (OCI) image format within the Docker artifact integrationAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 28/100
librespeed/speedtest#879 ·
-
PHP vulnerabilitiesAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
librespeed/speedtest#876 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 42/100
librespeed/speedtest#875 ·
-
CVE-2026-109618 / CVE-2026-109619Quizá libre de nuevo @sstidl la tomó hace 34 días y no hay ningún pull request abierto. AbiertoConfirmed
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
librespeed/speedtest#866 · 3 comentarios · 10 reacciones · 2 asignados ·
Todos los issues de librespeed/speedtest
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
testing-library/jest-dom#749 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
ernst:4-klein prio:3-wacht ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
NewspeedyNL/PidLane#767 ·
Los mantenedores suelen responder en 1 día
-
bug for-agent ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
WenyuChiou/agent-board#1812 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug help wanted Should Have ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
hannahro15/Musical-Match-Saga#327 · 1 comentario ·
Los mantenedores suelen responder en 1 día