Optionally show ISP info for private LAN clients using the server's public IP
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- docker, php
- Ambito
- backend, networking
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 15.3k
- Fork
- 2.5k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di librespeed/speedtest
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
librespeed/speedtest#880 ·
-
Add support for Open Container Initiative (OCI) image format within the Docker artifact integrationAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
librespeed/speedtest#879 ·
-
PHP vulnerabilitiesAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
librespeed/speedtest#876 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 42/100
librespeed/speedtest#875 ·
-
CVE-2026-109618 / CVE-2026-109619Forse di nuovo libera @sstidl l’ha presa 34 giorni fa e non c’è nessuna pull request aperta. ApertaConfirmed
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
librespeed/speedtest#866 · 3 commenti · 10 reazioni · 2 assegnatari ·
Tutte le issue di librespeed/speedtest
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
testing-library/jest-dom#749 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
ernst:4-klein prio:3-wacht ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
NewspeedyNL/PidLane#767 ·
I maintainer di solito rispondono entro 1 giorno
-
bug for-agent ready
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
WenyuChiou/agent-board#1812 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug help wanted Should Have ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
hannahro15/Musical-Match-Saga#327 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno