Console: Add eepsite table on debug page

This commit is contained in:
zzz
2021-03-23 08:28:38 -04:00
parent 0ab429e1ed
commit 0eb4096aad

View File

@ -376,6 +376,13 @@ public class PortMapper {
continue;
out.write("<tr><td>" + s + "<td>" + convertWildcard(ia.getHostName(), DEFAULT_HOST) + "<td>" + ia.getPort() + '\n');
}
if (!_eepsites.isEmpty()) {
out.write("<tr><td colspan=\"3\">&nbsp;</tr><tr><th>Eepsite<th>URL<th>\n");
for (String url : _eepsites) {
String s = url.startsWith("https://") ? SVC_HTTPS_EEPSITE : SVC_EEPSITE;
out.write("<tr><td>" + s + "<td><a href=\"" + url + "\">" + url + "</a><td>\n");
}
}
out.write("</table>\n");
}
}