We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09e1173 commit 6ba1503Copy full SHA for 6ba1503
libxrdp/xrdp_iso.c
@@ -72,6 +72,17 @@ xrdp_iso_create(struct xrdp_mcs *owner, struct trans *trans)
72
self = (struct xrdp_iso *) g_malloc(sizeof(struct xrdp_iso), 1);
73
self->mcs_layer = owner;
74
self->trans = trans;
75
+
76
+ // See if we're running in vmconnect mode on this connection
77
+ struct xrdp_client_info *client_info = &(self->mcs_layer->sec_layer->rdp_layer->client_info);
78
+ if (client_info->vmconnect && trans->mode != TRANS_MODE_VSOCK)
79
+ {
80
+ char desc[MAX_PEER_DESCSTRLEN];
81
+ g_sck_get_peer_description(trans->sck, desc, sizeof(desc));
82
+ LOG(LOG_LEVEL_INFO, "Disabling vmconnect mode for connection from %s",
83
+ desc);
84
+ client_info->vmconnect = 0;
85
+ }
86
return self;
87
}
88
0 commit comments