refactor(relay-server): simplify lease link generation to use identityID

Removed conditional logic that preferred 'name' over 'identityID' for link paths in convertLeaseEntriesToRows. Now always uses identityID for consistency, ensuring unique and reliable links.

lemon-mint committed Nov 1, 2025 at 02:35 UTC ecd570a95bff85ab8a3a98c4d2ea1e5ed4eefbf8
1 file changed +1 -7
cmd/relay-server/view.go
+1 -7
@@ -348,13 +348,7 @@ func convertLeaseEntriesToRows(serv *portal.RelayServer) []leaseRow {
348 dnsLabel = dnsLabel[:8] + "..."
349 }
350
351 - // Create link for the lease
352 - // Use name if available, otherwise fall back to identity ID
353 - linkPath := name
354 - if linkPath == "" || linkPath == "(unnamed)" {
355 - linkPath = identityID
356 - }
357 - link := fmt.Sprintf("https://%s.securl.click/", linkPath)
351 + link := fmt.Sprintf("https://%s.securl.click/", identityID)
352
353 row := leaseRow{
354 Peer: identityID,