rpc.py: Onion address support bugfix

This commit is contained in:
The MMGen Project 2021-07-04 10:26:29 +00:00
commit a1000bbaac
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -675,7 +675,7 @@ class MoneroRPCClient(RPCClient):
self.proxy = IPPort(proxy)
test_connection = False
if host.endswith('.onion'):
network_proto = 'http'
self.network_proto = 'http'
super().__init__(host,port,test_connection)
if self.auth_type:
self.auth = auth_data(user,passwd)