update to latest changes on tunnel plugin
All checks were successful
gitea-sync/antd-tunnel-publishers/pipeline/head This commit looks good

This commit is contained in:
DanyLE
2023-03-29 12:09:40 +02:00
parent 439ed880a2
commit a16e89b087
10 changed files with 138 additions and 25 deletions

View File

@@ -213,6 +213,7 @@ int main(int argc, char **argv)
if (argc != 5)
{
M_LOG(MODULE_NAME, "Usage: %s path/to/hotline/socket channel_name input_file r/w\n", argv[0]);
printf("Usage: %s path/to/hotline/socket channel_name input_file r/w\n", argv[0]);
return -1;
}
@@ -221,7 +222,7 @@ int main(int argc, char **argv)
signal(SIGINT, int_handler);
// now try to request new channel from hotline
fd = open_unix_socket(argv[1]);
fd = open_socket(argv[1]);
if (fd == -1)
{
M_ERROR(MODULE_NAME, "Unable to open the hotline: %s", argv[1]);
@@ -240,7 +241,7 @@ int main(int argc, char **argv)
(void)close(fd);
return -1;
}
M_LOG(MODULE_NAME, "Wait for comfirm creation of %s", argv[2]);
M_LOG(MODULE_NAME, "Wait for confirm creation of %s", argv[2]);
// now wait for message
if (msg_read(fd, &msg) == -1)
{