mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 17:52:46 +00:00
Remove an obsolete column from Node table in netconf.
This commit is contained in:
parent
4267e7da93
commit
a31c54b44b
@ -168,15 +168,15 @@ int main(int argc,char **argv)
|
||||
meta.fromString(request.get("meta"));
|
||||
|
||||
// Do quick signature check / sanity check
|
||||
if (!peerIdentity.locallyValidate(false)) {
|
||||
fprintf(stderr,"identity failed signature check: %s\n",peerIdentity.toString(false).c_str());
|
||||
if (!peerIdentity.locallyValidate()) {
|
||||
fprintf(stderr,"identity failed validity check: %s\n",peerIdentity.toString(false).c_str());
|
||||
continue;
|
||||
}
|
||||
|
||||
// Save identity if unknown
|
||||
{
|
||||
Query q = dbCon->query();
|
||||
q << "SELECT identity,identityValidated FROM Node WHERE id = " << peerIdentity.address().toInt();
|
||||
q << "SELECT identity FROM Node WHERE id = " << peerIdentity.address().toInt();
|
||||
StoreQueryResult rs = q.store();
|
||||
if (rs.num_rows() > 0) {
|
||||
if (rs[0]["identity"] != peerIdentity.toString(false)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user