# IPv6 client addresses truncated (last hextet treated as port), causes endless /api/location/lookup loop (traefik-log-dashboard #232)

**URL:** <https://forum.hhf.technology/t/ipv6-client-addresses-truncated-last-hextet-treated-as-port-causes-endless-api-location-lookup-loop-traefik-log-dashboard-232/4585>\
**Category:** Traefik Log Dashboard\
**Tags:** issue\
**Created:** [October 21, 2026, 5:49pm UTC](https://forum.hhf.technology/t/ipv6-client-addresses-truncated-last-hextet-treated-as-port-causes-endless-api-location-lookup-loop-traefik-log-dashboard-232/4585 "2026-10-21T17:49:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.hhf.technology/user_avatar/forum.hhf.technology/system/32/16_2.png) [@system](https://forum.hhf.technology/u/system)\
**Post date:** [October 21, 2026, 5:49pm UTC](https://forum.hhf.technology/t/ipv6-client-addresses-truncated-last-hextet-treated-as-port-causes-endless-api-location-lookup-loop-traefik-log-dashboard-232/4585/1 "2026-10-21T17:49:26Z")

</div>

> 🐙 **GitHub issue [traefik-log-dashboard #232](https://github.com/hhftechnology/traefik-log-dashboard/issues/232)**, opened by **`kurthw`** on GitHub

Traefik access log (JSON) contains the full address:  
“ClientAddr”:“[2a02:1210:8c53:9c00:bd88:4066:d542:83bd]:2270”  
“ClientHost”:“2a02:1210:8c53:9c00:bd88:4066:d542:83bd”

The dashboard sends the truncated, invalid address to the lookup API:  
POST /api/location/lookup {“ips”:[“2a02:1210:8c53:9c00:bd88:4066:d542”]}  
Response: {“locations”:,“count”:0}

The frontend retries this every ~500 ms indefinitely, so the  
“Loading location data…” toast keeps flashing.

Expected:

- Use ClientHost, or strip the port only after the closing bracket for IPv6
- Cache failed lookups (GEOIP\_UNKNOWN\_CACHE\_TTL\_MS) in the frontend as well

Setup: agent + dashboard :latest, local GeoLite2-City MMDB, Traefik 3.7.16 behind Pangolin.

* * *

💬 Discuss it here. Status, fixes and code review stay on [GitHub](https://github.com/hhftechnology/traefik-log-dashboard/issues/232).
