From 1776cf958d348beb1f1507661ee8c7de192d6bce Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sun, 14 Jul 2024 04:51:09 +0300 Subject: [PATCH] Use socket.inet_pton in main.bootstrap_from_dns() to support IPv6 addrs --- minode/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minode/main.py b/minode/main.py index 58fd80b..0d7db9c 100644 --- a/minode/main.py +++ b/minode/main.py @@ -110,7 +110,7 @@ def bootstrap_from_dns(): ): try: addr = item[4][0] - socket.inet_aton(addr) + socket.inet_pton(item[0], addr) except (TypeError, socket.error): continue else: