Skip to content

Commit

Permalink
Fix port type
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Oct 26, 2024
1 parent 7771379 commit 2f6f5de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpcClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def __init__(self, rpc_protocol: str, rpc_host: str, rpc_user: str, rpc_password
self.rpc_url = f"{rpc_protocol}://{rpc_user}:{rpc_password}@{rpc_host}"

host, port = rpc_host.split(":")
port = int(port)
if rpc_protocol == "https":
self.httpConnection = httplib.HTTPSConnection(host, port, timeout=20, context=ssl._create_unverified_context())
else:
Expand Down

0 comments on commit 2f6f5de

Please sign in to comment.