Fix parse port from lnd get info uris convert to int (#1253)

This commit is contained in:
Jonathan Zernik 2021-09-09 16:41:27 -07:00 committed by GitHub
parent 1941b6673a
commit fa5bc6e153
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -198,7 +198,8 @@ class SqueakCore:
logger.info("Packaging offer with uris: {}".format(uris))
for uri in uris:
pubkey, address = uri.split("@")
host, port = address.split(":")
host, port_str = address.split(":")
port = int(port_str)
return LightningAddressHostPort(
host=host,
port=port,