feat: add port clickable
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user