~ehmry/nim_tox

3b6a3ca028805d88f4e7bc634ab2327bd9a1ebf1 — Emery Hemingway 10 months ago 6c1bd56
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