mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-24 08:34:18 +01:00
autopilot: fix deprecation warning for dns.resolver.query
This commit is contained in:
@@ -28,7 +28,7 @@ class CLightning_autopilot(Autopilot):
|
||||
retrieve the nodeids of the ln seed nodes from lseed.bitcoinstats.com
|
||||
"""
|
||||
domain = "lseed.bitcoinstats.com"
|
||||
srv_records = dns.resolver.query(domain, "SRV")
|
||||
srv_records = dns.resolver.resolve(domain, "SRV")
|
||||
res = []
|
||||
for srv in srv_records:
|
||||
bech32 = str(srv.target).rstrip(".").split(".")[0]
|
||||
|
||||
Reference in New Issue
Block a user