feat(gui): add reverse DNS hostname detection for peers

Resolve hostname via PTR record on peer endpoint IP.
Results cached in memory for 5 minutes to avoid latency.
Hostname shown below endpoint in the peers table.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-06 10:23:12 +03:00
parent fe1cba2d02
commit 667cdd90df
3 changed files with 28 additions and 1 deletions
+4 -1
View File
@@ -40,7 +40,10 @@
</td>
<td class="mono-sm">{{ p.client_address }}</td>
<td class="mono-sm text-muted">{{ p.routes }}</td>
<td class="mono-sm text-muted">{{ p.endpoint }}</td>
<td>
<span class="mono-sm text-muted">{{ p.endpoint }}</span>
{% if p.hostname %}<br><span class="hostname">{{ p.hostname }}</span>{% endif %}
</td>
<td class="text-muted traffic">
<span title="Получено">↓ {{ p.rx }}</span>
<span title="Отправлено">↑ {{ p.tx }}</span>