mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-18 20:47:53 +00:00
Merge branch 'dev' into ChrisCarini/addArchToSynologyDSM7
This commit is contained in:
commit
8b44ac984c
@ -1436,7 +1436,21 @@ void PostgreSQL::commitThread()
|
||||
w.commit();
|
||||
|
||||
if (_smee != NULL && isNewMember) {
|
||||
notifyNewMember(networkId, memberId);
|
||||
pqxx::row row = w.exec_params1(
|
||||
"SELECT "
|
||||
" count(h.hook_id) "
|
||||
"FROM "
|
||||
" ztc_hook h "
|
||||
" INNER JOIN ztc_org o ON o.org_id = h.org_id "
|
||||
" INNER JOIN ztc_network n ON n.owner_id = o.owner_id "
|
||||
" WHERE "
|
||||
"n.id = $1 ",
|
||||
networkId
|
||||
);
|
||||
int64_t hookCount = row[0].as<int64_t>();
|
||||
if (hookCount > 0) {
|
||||
notifyNewMember(networkId, memberId);
|
||||
}
|
||||
}
|
||||
|
||||
const uint64_t nwidInt = OSUtils::jsonIntHex(config["nwid"], 0ULL);
|
||||
|
@ -100,12 +100,14 @@ else
|
||||
done
|
||||
fi
|
||||
|
||||
echo "Waiting for temporal"
|
||||
while ! nc -z ${ZT_TEMPORAL_HOST} ${ZT_TEMPORAL_PORT}; do
|
||||
echo "waiting...";
|
||||
sleep 1;
|
||||
done
|
||||
echo "Temporal is up"
|
||||
if [ -n "$ZT_TEMPORAL_HOST" ] && [ -n "$ZT_TEMPORAL_PORT" ]; then
|
||||
echo "waiting for temporal..."
|
||||
while ! nc -z ${ZT_TEMPORAL_HOST} ${ZT_TEMPORAL_PORT}; do
|
||||
echo "waiting...";
|
||||
sleep 1;
|
||||
done
|
||||
echo "Temporal is up"
|
||||
fi
|
||||
|
||||
export GLIBCXX_FORCE_NEW=1
|
||||
export GLIBCPP_FORCE_NEW=1
|
||||
|
2
one.cpp
2
one.cpp
@ -1210,7 +1210,7 @@ static int cli(int argc,char **argv)
|
||||
FSRefMakePath(&fsref, path, sizeof(path)) == noErr) {
|
||||
|
||||
} else if (getenv("SUDO_USER")) {
|
||||
sprintf((char*)path, "/Users/%s/Desktop/", getenv("SUDO_USER"));
|
||||
sprintf((char*)path, "/Users/%s/Desktop", getenv("SUDO_USER"));
|
||||
} else {
|
||||
fprintf(stdout, "%s", dump.str().c_str());
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user