diff --git a/bin/tgvoipcall b/bin/tgvoipcall index 6359c13..277c566 100755 Binary files a/bin/tgvoipcall and b/bin/tgvoipcall differ diff --git a/lib/libtgvoip-stable.so b/lib/libtgvoip-stable.so index 9d4959a..113f27f 100755 Binary files a/lib/libtgvoip-stable.so and b/lib/libtgvoip-stable.so differ diff --git a/lib/libtgvoip-unstable.so b/lib/libtgvoip-unstable.so index 3fb3fa0..b1f0e11 100755 Binary files a/lib/libtgvoip-unstable.so and b/lib/libtgvoip-unstable.so differ diff --git a/src/tgvoipcall/CMakeLists.txt b/src/tgvoipcall/CMakeLists.txt index 6595541..e476abd 100644 --- a/src/tgvoipcall/CMakeLists.txt +++ b/src/tgvoipcall/CMakeLists.txt @@ -18,13 +18,13 @@ ENDIF() ExternalProject_Add( libtgvoip - URL https://github.com/telegramdesktop/libtgvoip/archive/88b47b6.tar.gz + URL https://github.com/telegramdesktop/libtgvoip/archive/c5651ff.tar.gz #Unstable - #URL https://github.com/telegramdesktop/libtgvoip/archive/f775311.tar.gz + #URL https://github.com/telegramdesktop/libtgvoip/archive/da27199.tar.gz PREFIX libtgvoip BUILD_IN_SOURCE 1 - #CONFIGURE_COMMAND ./configure CPPFLAGS=-DTGVOIP_LOG_VERBOSITY=5 --enable-audio-callback --without-pulse --without-alsa - CONFIGURE_COMMAND ./configure CPPFLAGS=-DTGVOIP_LOG_VERBOSITY=0 --enable-audio-callback --without-pulse --without-alsa + CONFIGURE_COMMAND ./configure CPPFLAGS=-DTGVOIP_LOG_VERBOSITY=5 --enable-audio-callback --without-pulse --without-alsa + #CONFIGURE_COMMAND ./configure CPPFLAGS=-DTGVOIP_LOG_VERBOSITY=0 --enable-audio-callback --without-pulse --without-alsa BUILD_COMMAND make INSTALL_COMMAND "" ) diff --git a/src/tgvoipcall/main.cpp b/src/tgvoipcall/main.cpp index b377c47..cc67814 100644 --- a/src/tgvoipcall/main.cpp +++ b/src/tgvoipcall/main.cpp @@ -141,7 +141,11 @@ void init(int argc, char **argv) { char buf[16]; if (sscanf(argv[1], "%15[0-9.]:%hu", buf, &ep.port) != 2) throw std::invalid_argument(std::string("Incorrect reflector address: ") + argv[1]); - ep.host = buf; + TgVoipEdpointHost host = { + .ipv4 = std::string(buf), + .ipv6 = std::string(), + }; + ep.host = host; int len; sscanf(argv[2], "%*32[0-9a-f]%n", &len);