From 5b2e9f926568c140faa134955f068c6edb57e43a Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Fri, 18 May 2018 16:59:46 -0500 Subject: [PATCH] fixed whitelist in setaddressinfo --- onionr/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionr/core.py b/onionr/core.py index cf0f9690..d2ab303a 100644 --- a/onionr/core.py +++ b/onionr/core.py @@ -554,7 +554,7 @@ class Core: c = conn.cursor() command = (data, address) # TODO: validate key on whitelist - if key not in ('address', 'type', 'knownPeer', 'speed', 'success', 'DBHash', 'failure'): + if key not in ('address', 'type', 'knownPeer', 'speed', 'success', 'DBHash', 'failure', 'lastConnect'): raise Exception("Got invalid database key when setting address info") c.execute('UPDATE adders SET ' + key + ' = ? WHERE address=?', command) conn.commit()