SAM: Change default nickname for primary sessions

This commit is contained in:
zzz
2022-11-12 17:00:11 -05:00
parent e54f5ffadd
commit 114694434c

View File

@@ -164,7 +164,7 @@ class SAMStreamSession implements SAMMessageSess {
allprops.setProperty("i2cp.dontPublishLeaseSet", "true");
String name = allprops.getProperty("inbound.nickname");
if (name == null || name.trim().isEmpty()) {
name = "SAM TCP Client";
name = getClass().getSimpleName().equals("PrimarySession") ? "SAM Mux Client" : "SAM TCP Client";
allprops.setProperty("inbound.nickname", name);
}
String name2 = allprops.getProperty("outbound.nickname");