From fa5bc6e1530cf51eb5b886e14bd016601a2888fc Mon Sep 17 00:00:00 2001 From: Jonathan Zernik Date: Thu, 9 Sep 2021 16:41:27 -0700 Subject: [PATCH] Fix parse port from lnd get info uris convert to int (#1253) --- squeaknode/core/squeak_core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/squeaknode/core/squeak_core.py b/squeaknode/core/squeak_core.py index 82d376e2..b5235fec 100644 --- a/squeaknode/core/squeak_core.py +++ b/squeaknode/core/squeak_core.py @@ -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,