Merge pull request #3671 from shua21/xrdp

do not change port when not using sesman
This commit is contained in:
matt335672
2025-11-19 15:32:53 +00:00
committed by GitHub
+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)