diff --git a/onionr/default-plugins/gui/main.py b/onionr/default-plugins/gui/main.py index dcd87f89..6cf78289 100644 --- a/onionr/default-plugins/gui/main.py +++ b/onionr/default-plugins/gui/main.py @@ -73,6 +73,7 @@ def openGUI(): nodeInfo = Frame(root) keyInfo = Frame(root) + print(pluginapi.get_onionr().get_hostname()) idText = pluginapi.get_onionr().get_hostname() idEntry = Entry(nodeInfo) diff --git a/onionr/onionr.py b/onionr/onionr.py index bd3fd952..b04a9d4a 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -561,8 +561,9 @@ class Onionr: with open('./data/hs/hostname', 'r') as hostname: retVal = hostname.read() except FileNotFoundError: - return retVal - + retVal = None + return retVal + def addFile(self): '''command to add a file to the onionr network''' if len(sys.argv) >= 2: @@ -576,6 +577,6 @@ class Onionr: else: print(new) self.onionrCore.insertBlock(new, header='bin') - + Onionr()