Fix regression introduced with UDS

This commit is contained in:
matt335672 2022-04-20 09:40:36 +01:00
parent 829106d793
commit 902c951648
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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);