mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-03-13 02:02:36 -07:00
set network member frontend based on the network its a member of
This commit is contained in:
parent
38f4d124b0
commit
03aa33bba7
1 changed files with 7 additions and 4 deletions
|
|
@ -1264,11 +1264,12 @@ void CentralDB::commitThread()
|
|||
"identity, last_authorized_time, last_deauthorized_time, "
|
||||
"remote_trace_level, remote_trace_target, revision, tags, version_major, "
|
||||
"version_minor, "
|
||||
"version_revision, version_protocol) "
|
||||
"version_revision, version_protocol, frontend) "
|
||||
"VALUES ($1, $2, $3, $4, $5, $6, $7, TO_TIMESTAMP($8::double precision/1000), $9, "
|
||||
"TO_TIMESTAMP($10::double precision/1000), $11, TO_TIMESTAMP($12::double "
|
||||
"precision/1000), "
|
||||
"TO_TIMESTAMP($13::double precision/1000), $14, $15, $16, $17, $18, $19, $20, $21) "
|
||||
"TO_TIMESTAMP($13::double precision/1000), $14, $15, $16, $17, $18, $19, $20, $21, "
|
||||
"$22) "
|
||||
"ON CONFLICT (device_id, network_id) DO UPDATE SET "
|
||||
"authorized = EXCLUDED.authorized, active_bridge = EXCLUDED.active_bridge, "
|
||||
"ip_assignments = EXCLUDED.ip_assignments, no_auto_assign_ips = "
|
||||
|
|
@ -1284,7 +1285,8 @@ void CentralDB::commitThread()
|
|||
"EXCLUDED.version_major, "
|
||||
"version_minor = EXCLUDED.version_minor, version_revision = "
|
||||
"EXCLUDED.version_revision, "
|
||||
"version_protocol = EXCLUDED.version_protocol",
|
||||
"version_protocol = EXCLUDED.version_protocol, "
|
||||
"frontend = EXCLUDED.frontend",
|
||||
pqxx::params { memberId,
|
||||
networkId,
|
||||
OSUtils::jsonBool(config["authorized"], false),
|
||||
|
|
@ -1305,7 +1307,8 @@ void CentralDB::commitThread()
|
|||
vMajor,
|
||||
vMinor,
|
||||
vRev,
|
||||
vProto })
|
||||
vProto,
|
||||
frontend })
|
||||
.no_rows();
|
||||
|
||||
w.commit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue