Fix environment variable (bauerj)

This commit is contained in:
Neil Booth 2016-12-05 06:37:22 +09:00
parent be8adbbcd5
commit bc9027094b

View File

@ -58,7 +58,7 @@ def main():
args = parser.parse_args()
if args.port is None:
args.port = int(environ.get('ELECTRUMX_RPC_PORT', 8000))
args.port = int(environ.get('RPC_PORT', 8000))
loop = asyncio.get_event_loop()
coro = loop.create_connection(RPCClient, 'localhost', args.port)