FIX: nodejs compatibility on macos
@@ -67,7 +67,7 @@ void ensure_impl()
auto libpath = std::string(info.dli_fname);
auto slash_pos = libpath.find_last_of("/\\");
if (slash_pos != std::string::npos) {
- libpath = libpath.substr(0, slash_pos) + "/libtonclient.dylib";
+ libpath = libpath.substr(0, slash_pos) + "/libtonclientnodejs.dylib";
}
void* lib_handle = dlopen(libpath.c_str(), RTLD_LOCAL);
