ratox

FIFO based tox client
git clone git://git.2f30.org/ratox
Log | Files | Refs | README | LICENSE

commit 5da24ad613bb88ee63c3d4447d1563ad95f0ea52
parent ab7bdb2634ca1866bb9c8db53e7f5848b8146f8e
Author: z3bra <contactatz3bradotorg>
Date:   Fri, 25 Nov 2016 17:43:20 +0100

nodegen: Keep only online nodes (.last_ping > 0)

Updated nodes.h to match this criteria as well

Diffstat:
Mnodegen | 4++--
Mnodes.h | 140++++++++-----------------------------------------------------------------------
2 files changed, 15 insertions(+), 129 deletions(-)

diff --git a/nodegen b/nodegen @@ -2,8 +2,8 @@ echo 'static struct node nodes[] = {' -curl https://nodes.tox.chat/json | -jq --tab '[.nodes[] | {".addr4": .ipv4, ".addr6": .ipv6, ".port": .port, ".idstr": .public_key}]' | +curl -s https://nodes.tox.chat/json | +jq --tab '[.nodes[] | select(.last_ping > 0) | {".addr4": .ipv4, ".addr6": .ipv6, ".port": .port, ".idstr": .public_key}]' | sed 's/"-"/NULL/; s/"\(\.[0-9a-z]\+\)":/\1 =/; 1d; $d' echo '};' diff --git a/nodes.h b/nodes.h @@ -18,6 +18,12 @@ static struct node nodes[] = { .idstr = "461FA3776EF0FA655F1A05477DF1B3B614F7D6B124F7DB1DD4FE3C08B03B640F" }, { + .addr4 = "104.167.101.29", + .addr6 = NULL, + .port = 33445, + .idstr = "5918AC3C06955962A75AD7DF4F80A5D7C34F7DB9E1498D2E0495DE35B3FE8A57" + }, + { .addr4 = "205.185.116.116", .addr6 = NULL, .port = 33445, @@ -240,147 +246,27 @@ static struct node nodes[] = { .idstr = "C7D284129E83877D63591F14B3F658D77FF9BA9BA7293AEB2BDFBFE1A803AF47" }, { - .addr4 = "prok.pw", - .addr6 = NULL, - .port = 33445, - .idstr = "69C3FEBB977687B64FA0213BDEB89A43463BB48DED288150CFFB6429EFF82436" - }, - { .addr4 = "46.229.52.198", .addr6 = NULL, .port = 33445, .idstr = "813C8F4187833EF0655B10F7752141A352248462A567529A38B6BBF73E979307" }, { - .addr4 = "5.9.77.5", - .addr6 = NULL, - .port = 3389, + .addr4 = "node.tox.ngc.network", + .addr6 = "node.tox.ngc.network", + .port = 33445, .idstr = "A856243058D1DE633379508ADCAFCF944E40E1672FF402750EF712E30C42012A" }, { - .addr4 = "46.101.197.175", - .addr6 = "2a03:b0c0:3:d0::ac:5001", - .port = 443, - .idstr = "CD133B521159541FB1D326DE9850F5E56A6C724B5B8E5EB5CD8D950408E95707" - }, - { .addr4 = "tox.zodiaclabs.org", .addr6 = "v6.tox.zodiaclabs.org", .port = 33445, .idstr = "A09162D68618E742FFBCA1C2C70385E6679604B2D80EA6E84AD0996A1AC8A074" }, { - .addr4 = "144.76.60.215", - .addr6 = "2a01:4f8:191:64d6::1", - .port = 33445, - .idstr = "04119E835DF3E78BACF0F84235B300546AF8B936F035185E2A8E9E0A67C8924F" - }, - { - .addr4 = "195.154.119.113", - .addr6 = "2001:bc8:3698:101::1", - .port = 33445, - .idstr = "E398A69646B8CEACA9F0B84F553726C1C49270558C57DF5F3C368F05A7D71354" - }, - { - .addr4 = "46.38.239.179", - .addr6 = NULL, - .port = 33445, - .idstr = "F5A1A38EFB6BD3C2C8AF8B10D85F0F89E931704D349F1D0720C3C4059AF2440A" - }, - { - .addr4 = "104.167.101.29", - .addr6 = NULL, - .port = 33445, - .idstr = "5918AC3C06955962A75AD7DF4F80A5D7C34F7DB9E1498D2E0495DE35B3FE8A57" - }, - { - .addr4 = "80.232.246.79", - .addr6 = NULL, - .port = 33445, - .idstr = "CF6CECA0A14A31717CC8501DA51BE27742B70746956E6676FF423A529F91ED5D" - }, - { - .addr4 = "139.162.217.110", - .addr6 = NULL, - .port = 33445, - .idstr = "0EEBE6304F4B3F6549F39A87FBB45751929F4833BA6AC5F35B6DFA79D01B4523" - }, - { - .addr4 = "home.vikingmakt.com.br", - .addr6 = NULL, - .port = 33445, - .idstr = "188E072676404ED833A4E947DC1D223DF8EFEBE5F5258573A236573688FB9761" - }, - { - .addr4 = "188.244.38.183", - .addr6 = "2001:470:de00:2:20c:29ff:fe68:354f", - .port = 33445, - .idstr = "15A0F9684E2423F9F46CFA5A50B562AE42525580D840CC50E518192BF333EE38" - }, - { - .addr4 = "mrflibble.c4.ee", - .addr6 = "2a02:16e0:0:12::4", - .port = 33445, - .idstr = "FAAB17014F42F7F20949F61E55F66A73C230876812A9737F5F6D2DCE4D9E4207" - }, - { - .addr4 = "82.211.31.116", - .addr6 = NULL, - .port = 33445, - .idstr = "AF97B76392A6474AF2FD269220FDCF4127D86A42EF3A242DF53A40A268A2CD7C" - }, - { - .addr4 = "tox1.privacydragon.me", - .addr6 = NULL, - .port = 33445, - .idstr = "31910C0497D347FF160D6F3A6C0E317BAFA71E8E03BC4CBB2A185C9D4FB8B31E" - }, - { - .addr4 = "zawertun.net", - .addr6 = NULL, - .port = 33445, - .idstr = "5521952892FBD5C185DF7180DB4DEF69D7844DEEE79B1F75A634ED9DF656756E" - }, - { - .addr4 = "87.98.168.93", - .addr6 = NULL, - .port = 33445, - .idstr = "C3F6C06A624FAE086DA94604A7838DB495769807EC055FADA36EBF2D4484FB33" - }, - { - .addr4 = "185.61.253.189", - .addr6 = "2a04:ee00:0:9:20c:29ff:fe27:ad96", - .port = 33445, - .idstr = "73EEBCB4CBBE56BF0E0F01881DDD88C6B250BAE92CF487BE3FBE02FD830CE200" - }, - { - .addr4 = "109.75.40.105", - .addr6 = "2001:470:70d6::1", - .port = 33445, - .idstr = "2B9CD794424FD579044EC2FC5252B23DF8B4AAF239C25074F70B1090C3F8C83A" - }, - { - .addr4 = "srv1.ricin.im", - .addr6 = NULL, - .port = 1337, - .idstr = "3651DAB570D7F60381F87B19D6935EE7F5FE01308DCE71C4B69993150C6A903C" - }, - { - .addr4 = "185.120.34.64", - .addr6 = "2a06:8ec0:1:bb::3862", - .port = 33445, - .idstr = "728925473812C7AAC482BE7250BCCAD0B8CB9F737BF3D42ABD34459C1768F854" - }, - { - .addr4 = "maggie.prok.pw", - .addr6 = "maggie.prok.pw", - .port = 33445, - .idstr = "B75583B6D967DB8AD7C6D3B6F9318194BCC79B2FEF18F69E2DF275B779E7AA30" - }, - { - .addr4 = "138.201.172.228", - .addr6 = NULL, - .port = 33445, - .idstr = "1B08FC930EE60429B63273CE39068D46316E79A3F7DDAFAD9C8CA65E50047B7A" + .addr4 = "46.101.197.175", + .addr6 = "2a03:b0c0:3:d0::ac:5001", + .port = 443, + .idstr = "CD133B521159541FB1D326DE9850F5E56A6C724B5B8E5EB5CD8D950408E95707" } };