diff options
Diffstat (limited to 'common/trans.c')
-rw-r--r-- | common/trans.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/trans.c b/common/trans.c index 8a271722..24004dbf 100644 --- a/common/trans.c +++ b/common/trans.c @@ -831,16 +831,15 @@ trans_listen_address(struct trans *self, char *port, const char *address) } } } -#if defined(XRDP_ENABLE_VSOCK) else if (self->mode == TRANS_MODE_VSOCK) /* vsock socket */ { - self->sck = g_vsock_socket(); + self->sck = g_sck_vsock_socket(); if (self->sck < 0) return 1; g_tcp_set_non_blocking(self->sck); - if (g_vsock_bind(self->sck, port) == 0) + if (g_sck_vsock_bind(self->sck, port) == 0) { if (g_tcp_listen(self->sck) == 0) { @@ -850,7 +849,6 @@ trans_listen_address(struct trans *self, char *port, const char *address) } } } -#endif return 1; } |