feat: add port clickable

This commit is contained in:
2026-05-19 16:58:44 +02:00
parent d1db386e1d
commit b3176c4dfa
5 changed files with 62 additions and 17 deletions

View File

@ -53,6 +53,10 @@ func (g *Gateway) Tunnel(stream agentv1.AgentGateway_TunnelServer) error {
ipAddress = host
}
}
// If the agent advertises its own LAN IP, prefer it over the peer address.
if hs.IpAddress != "" {
ipAddress = hs.IpAddress
}
agentID := existing.ID
slog.Info("agent connected", "id", agentID, "hostname", hs.Hostname, "ip", ipAddress)