do not change xvnc port when not using sesman

This commit is contained in:
shua21
2025-11-18 22:13:31 +09:00
parent e7611866ad
commit ba36dacf95
+4 -1
View File
@@ -5324,7 +5324,10 @@ xrdp_mm_setup_mod2(struct xrdp_mm *self)
}
else if (self->code == XVNC_SESSION_CODE)
{
g_snprintf(text, sizeof(text), "%d", 5900 + self->display);
if (self->use_sesman)
{
g_snprintf(text, sizeof(text), "%d", 5900 + self->display);
}
}
else if (self->code == XORG_SESSION_CODE ||
self->code == XVNC_UDS_SESSION_CODE)