Fix regression introduced with UDS
This commit is contained in:
parent
829106d793
commit
902c951648
@ -231,6 +231,7 @@ name=Xvnc
|
||||
lib=libvnc.@lib_extension@
|
||||
username=ask
|
||||
password=ask
|
||||
ip=127.0.0.1
|
||||
port=-1
|
||||
#xserverbpp=24
|
||||
#delay_ms=2000
|
||||
|
12
xup/xup.c
12
xup/xup.c
@ -162,12 +162,6 @@ lib_mod_connect(struct mod *mod)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (g_strcmp(mod->ip, "") == 0)
|
||||
{
|
||||
mod->server_msg(mod, "error - no ip set", 0);
|
||||
return 1;
|
||||
}
|
||||
|
||||
make_stream(s);
|
||||
g_sprintf(con_port, "%s", mod->port);
|
||||
|
||||
@ -183,6 +177,12 @@ lib_mod_connect(struct mod *mod)
|
||||
{
|
||||
socket_mode = TRANS_MODE_TCP;
|
||||
LOG(LOG_LEVEL_INFO, "lib_mod_connect: connecting via TCP socket");
|
||||
if (g_strcmp(mod->ip, "") == 0)
|
||||
{
|
||||
mod->server_msg(mod, "error - no ip set", 0);
|
||||
free_stream(s);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
mod->trans = trans_create(socket_mode, 8 * 8192, 8192);
|
||||
|
Loading…
Reference in New Issue
Block a user