From 650d5077ed68efd0c3693f7b01c4c5e919b54283 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Sun, 14 Jul 2019 02:05:25 -0500 Subject: [PATCH] correct onionr.py open port function call --- onionr/onionr.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onionr/onionr.py b/onionr/onionr.py index 2a1cc30d..d67943cf 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -118,10 +118,10 @@ class Onionr: if type(config.get('client.webpassword')) is type(None): config.set('client.webpassword', base64.b16encode(os.urandom(32)).decode('utf-8'), savefile=True) if type(config.get('client.client.port')) is type(None): - randomPort = netcontroller.getOpenPort() + randomPort = netcontroller.get_open_port() config.set('client.client.port', randomPort, savefile=True) if type(config.get('client.public.port')) is type(None): - randomPort = netcontroller.getOpenPort() + randomPort = netcontroller.get_open_port() config.set('client.public.port', randomPort, savefile=True) if type(config.get('client.api_version')) is type(None): config.set('client.api_version', API_VERSION, savefile=True)