New boostrap JSON format
1 files changed, 2 insertions(+), 2 deletions(-) M src/toxcore/bootstrap.nim
M src/toxcore/bootstrap.nim => src/toxcore/bootstrap.nim +2 -2
@@ 14,7 14,7 @@ proc bootstrapFromSpof*(tox: Tox; ipv4 = true; ipv6 = true) {.async.} = txt = await http.getContent(spofNodeList) js = parseJson(txt) close http for num, node in js.pairs: for node in js["nodes"]: try: let @@ ip4 = node["ipv4"].getStr("-") 26,4 26,4 @@ proc bootstrapFromSpof*(tox: Tox; ipv4 = true; ipv6 = true) {.async.} = if ipv6 and ip6 != "-": tox.bootstrap(ip6, key, port) except: discard echo "failed to parse ", spofNodeList