From 2164ded6793b6ba3e3281bbc760eb8c65acbd8d3 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 20 Sep 2018 12:15:08 -0500 Subject: [PATCH] work on sockets --- onionr/onionr.py | 2 +- onionr/static-data/default-plugins/metadataprocessor/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/onionr.py b/onionr/onionr.py index 8843aab9..adf247b3 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -271,7 +271,7 @@ class Onionr: ''' def startChat(self): - socketInfo = json.dumps({'peer': api.data['signer'], 'address': address, 'port': port, 'create': True, 'reason': reason}) + socketInfo = json.dumps({'peer': '', 'address': '', 'port': port, 'create': True, 'reason': 'chat'}) self.onionrCore.daemonQueueAdd('startSocket', socketInfo) def getCommands(self): diff --git a/onionr/static-data/default-plugins/metadataprocessor/main.py b/onionr/static-data/default-plugins/metadataprocessor/main.py index b4065f11..759db071 100644 --- a/onionr/static-data/default-plugins/metadataprocessor/main.py +++ b/onionr/static-data/default-plugins/metadataprocessor/main.py @@ -49,7 +49,7 @@ def _processForwardKey(api, myBlock): ''' Get the forward secrecy key specified by the user for us to use ''' - peer = onionrusers.OnionrUser(self.api.get_core(), myBlock.signer) + peer = onionrusers.OnionrUser(api.get_core(), myBlock.signer) key = myBlock.getMetadata('newFSKey') # We don't need to validate here probably, but it helps