diff options
author | pranomostro <pranomestro@gmail.com> | 2016-11-02 09:56:37 +0100 |
---|---|---|
committer | z3bra <contactatz3bradotorg> | 2016-11-08 16:47:51 +0100 |
commit | 1450809b32bbf4c15bd084c6b3b003698fb7e107 (patch) | |
tree | 5ea7c2c7dc93df236cbb66d22983bf4982f6566f | |
parent | a1d2b63e6af32685f5828c302a0d3edeeb48090f (diff) |
Add generating nodes from the available nodes.tox.chat API.
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | config.def.h | 135 | ||||
-rwxr-xr-x | nodegen | 9 | ||||
-rw-r--r-- | nodes.h | 386 |
5 files changed, 401 insertions, 137 deletions
@@ -5,7 +5,7 @@ include config.mk TOXSRC = $(shell find toxcore/toxcore toxcore/toxav toxcore/toxencryptsave -name '*.c') -HDR = arg.h config.h readpassphrase.h util.h +HDR = arg.h config.h nodes.h readpassphrase.h util.h LIB = \ eprintf.o \ readpassphrase.o \ @@ -32,6 +32,10 @@ config.h: @echo creating $@ from config.def.h @cp config.def.h $@ +nodes.h: + @echo creating $@ with nodegen + @./nodegen >$@ + .o: @echo LD $@ @$(LD) -o $@ $< util.a $(LDFLAGS) @@ -1,2 +0,0 @@ -* Simple script to dump an up to date table of tox nodes -for use with config.h. diff --git a/config.def.h b/config.def.h index a1498f3..f41e83a 100644 --- a/config.def.h +++ b/config.def.h @@ -19,137 +19,4 @@ static int proxytype = 2; /* 1 = HTTP, 2 = SOCKS5 */ static char proxyaddr[] = "localhost"; static uint16_t proxyport = 8080; -static struct node nodes[] = { - { - .addr4 = "192.254.75.98", - .addr6 = "2607:5600:284::2", - .port = 33445, - .idstr = "951C88B7E75C867418ACDB5D273821372BB5BD652740BCDF623A4FA293E75D2F" - }, - { - .addr4 = "31.7.57.236", - .addr6 = "2a02:29b8:1737::fee1:bad:6483:467d", - .port = 443, - .idstr = "2A4B50D1D525DA2E669592A20C327B5FAD6C7E5962DC69296F9FEC77C4436E4E" - }, - { - .addr4 = "107.161.17.51", - .addr6 = "2604:180:1:57:1::", - .port = 33445, - .idstr = "7BE3951B97CA4B9ECDDA768E8C52BA19E9E2690AB584787BF4C90E04DBB75111" - }, - { - .addr4 = "144.76.60.215", - .addr6 = "2a01:4f8:191:64d6::1", - .port = 33445, - .idstr = "04119E835DF3E78BACF0F84235B300546AF8B936F035185E2A8E9E0A67C8924F" - }, - { - .addr4 = "23.226.230.47", - .addr6 = "2604:180:1::3ded:b280", - .port = 33445, - .idstr = "A09162D68618E742FFBCA1C2C70385E6679604B2D80EA6E84AD0996A1AC8A074" - }, - { - .addr4 = "178.62.125.224", - .addr6 = "2a03:b0c0:1:d0::178:6001", - .port = 33445, - .idstr = "10B20C49ACBD968D7C80F2E8438F92EA51F189F4E70CFBBB2C2C8C799E97F03E" - }, - { - .addr4 = "37.187.46.132", - .addr6 = "2001:41d0:0052::0507", - .port = 33445, - .idstr = "5EB67C51D3FF5A9D528D242B669036ED2A30F8A60E674C45E7D43010CB2E1331" - }, - { - .addr4 = "178.21.112.187", - .addr6 = "2a02:2308::216:3eff:fe82:eaef", - .port = 33445, - .idstr = "4B2C19E924972CB9B57732FB172F8A8604DE13EEDA2A6234E348983344B23057" - }, - { - .addr4 = "128.199.237.51", - .addr6 = "2400:6180:0:d0::1ba:7001", - .port = 33445, - .idstr = "67D80D1E00DE2A5294C9CCF9116C72CEC05FB8C2C6DBCEE0B5EB796DA52E2564" - }, - { - .addr4 = "195.154.119.113", - .addr6 = "2001:bc8:3698:101::1", - .port = 33445, - .idstr = "E398A69646B8CEACA9F0B84F553726C1C49270558C57DF5F3C368F05A7D71354" - }, - { - .addr4 = "178.62.250.138", - .addr6 = "2a03:b0c0:2:d0::16:1", - .port = 33445, - .idstr = "788236D34978D1D5BD822F0A5BEBD2C53C64CC31CD3149350EE27D4D9A2F9B6B" - }, - { - .addr4 = "178.62.150.106", - .addr6 = NULL, - .port = 33445, - .idstr = "58D2DE4B169502669941E50780C1630FAA48A0B7026D6F4066C320D47AC6401E" - }, - { - .addr4 = "192.210.149.121", - .addr6 = NULL, - .port = 33445, - .idstr = "F404ABAA1C99A9D37D61AB54898F56793E1DEF8BD46B1038B9D822E8460FAB67" - }, - { - .addr4 = "54.199.139.199", - .addr6 = NULL, - .port = 33445, - .idstr = "7F9C31FE850E97CEFD4C4591DF93FC757C7C12549DDD55F8EEAECC34FE76C029" - }, - { - .addr4 = "63.165.243.15", - .addr6 = NULL, - .port = 443, - .idstr = "8CD087E31C67568103E8C2A28653337E90E6B8EDA0D765D57C6B5172B4F1F04C" - }, - { - .addr4 = "76.191.23.96", - .addr6 = NULL, - .port = 33445, - .idstr = "93574A3FAB7D612FEA29FD8D67D3DD10DFD07A075A5D62E8AF3DD9F5D0932E11" - }, - { - .addr4 = "46.38.239.179", - .addr6 = NULL, - .port = 33445, - .idstr = "F5A1A38EFB6BD3C2C8AF8B10D85F0F89E931704D349F1D0720C3C4059AF2440A" - }, - { - .addr4 = "144.76.93.230", - .addr6 = NULL, - .port = 33445, - .idstr = "2C308B4518862740AD9A121598BCA7713AFB25858B747313A4D073E2F6AC506C" - }, - { - .addr4 = "78.225.128.39", - .addr6 = NULL, - .port = 33445, - .idstr = "7A2306BFBA665E5480AE59B31E116BE9C04DCEFE04D9FE25082316FA34B4DA0C" - }, - { - .addr4 = "195.154.109.148", - .addr6 = NULL, - .port = 33445, - .idstr = "391C96CB67AE893D4782B8E4495EB9D89CF1031F48460C06075AA8CE76D50A21" - }, - { - .addr4 = "192.3.173.88", - .addr6 = NULL, - .port = 33445, - .idstr = "3E1FFDEB667BFF549F619EC6737834762124F50A89C8D0DBF1DDF64A2DD6CD1B" - }, - { - .addr4 = "130.133.110.14", - .addr6 = "2001:6f8:1c3c:babe::14:1", - .port = 33445, - .idstr = "461FA3776EF0FA655F1A05477DF1B3B614F7D6B124F7DB1DD4FE3C08B03B640F" - }, -}; +#include "nodes.h" @@ -0,0 +1,9 @@ +#!/bin/sh + +echo 'static struct node nodes[] = {' + +curl https://nodes.tox.chat/json | +jq --tab '[.nodes[] | {".addr4": .ipv4, ".addr6": .ipv6, ".port": .port, ".idstr": .public_key}]' | +sed 's/"-"/NULL/; s/"\(\.[0-9a-z]\+\)":/\1 =/; 1d; $d' + +echo '};' @@ -0,0 +1,386 @@ +static struct node nodes[] = { + { + .addr4 = "biribiri.org", + .addr6 = NULL, + .port = 33445, + .idstr = "F404ABAA1C99A9D37D61AB54898F56793E1DEF8BD46B1038B9D822E8460FAB67" + }, + { + .addr4 = "178.62.250.138", + .addr6 = "2a03:b0c0:2:d0::16:1", + .port = 33445, + .idstr = "788236D34978D1D5BD822F0A5BEBD2C53C64CC31CD3149350EE27D4D9A2F9B6B" + }, + { + .addr4 = "130.133.110.14", + .addr6 = "2001:6f8:1c3c:babe::14:1", + .port = 33445, + .idstr = "461FA3776EF0FA655F1A05477DF1B3B614F7D6B124F7DB1DD4FE3C08B03B640F" + }, + { + .addr4 = "205.185.116.116", + .addr6 = NULL, + .port = 33445, + .idstr = "A179B09749AC826FF01F37A9613F6B57118AE014D4196A0E1105A98F93A54702" + }, + { + .addr4 = "198.98.51.198", + .addr6 = "2605:6400:1:fed5:22:45af:ec10:f329", + .port = 33445, + .idstr = "1D5A5F2F5D6233058BF0259B09622FB40B482E4FA0931EB8FD3AB8E7BF7DAF6F" + }, + { + .addr4 = "108.61.165.198", + .addr6 = "2001:19f0:5000:8121:5054:ff:fe1c:9ded", + .port = 33445, + .idstr = "8E7D0B859922EF569298B4D261A8CCB5FEA14FB91ED412A7603A585A25698832" + }, + { + .addr4 = "194.249.212.109", + .addr6 = "2001:1470:fbfe::109", + .port = 33445, + .idstr = "3CEE1F054081E7A011234883BC4FC39F661A55B73637A5AC293DDF1251D9432B" + }, + { + .addr4 = "185.25.116.107", + .addr6 = "2a00:7a60:0:746b::3", + .port = 33445, + .idstr = "DA4E4ED4B697F2E9B000EEFE3A34B554ACD3F45F5C96EAEA2516DD7FF9AF7B43" + }, + { + .addr4 = "192.99.168.140", + .addr6 = NULL, + .port = 33445, + .idstr = "6A4D0607A296838434A6A7DDF99F50EF9D60A2C510BBF31FE538A25CB6B4652F" + }, + { + .addr4 = "95.215.46.114", + .addr6 = "2a02:7aa0:1619::bdbd:17b8", + .port = 33445, + .idstr = "5823FB947FF24CF83DDFAC3F3BAA18F96EA2018B16CC08429CB97FA502F40C23" + }, + { + .addr4 = "5.189.176.217", + .addr6 = "2a02:c200:1:10:3:1:605:1337", + .port = 5190, + .idstr = "2B2137E094F743AC8BD44652C55F41DFACC502F125E99E4FE24D40537489E32F" + }, + { + .addr4 = "104.223.122.15", + .addr6 = "2607:ff48:aa81:800::35eb:1", + .port = 33445, + .idstr = "0FB96EEBFB1650DDB52E70CF773DDFCABE25A95CC3BB50FC251082E4B63EF82A" + }, + { + .addr4 = "tox.verdict.gg", + .addr6 = NULL, + .port = 33445, + .idstr = "1C5293AEF2114717547B39DA8EA6F1E331E5E358B35F9B6B5F19317911C5F976" + }, + { + .addr4 = "d4rk4.ru", + .addr6 = NULL, + .port = 1813, + .idstr = "53737F6D47FA6BD2808F378E339AF45BF86F39B64E79D6D491C53A1D522E7039" + }, + { + .addr4 = "81.4.110.149", + .addr6 = "2a00:d880:3:2::8bdc:f19", + .port = 33445, + .idstr = "9E7BD4793FFECA7F32238FA2361040C09025ED3333744483CA6F3039BFF0211E" + }, + { + .addr4 = "95.31.20.151", + .addr6 = NULL, + .port = 33445, + .idstr = "9CA69BB74DE7C056D1CC6B16AB8A0A38725C0349D187D8996766958584D39340" + }, + { + .addr4 = "104.233.104.126", + .addr6 = NULL, + .port = 33445, + .idstr = "EDEE8F2E839A57820DE3DA4156D88350E53D4161447068A3457EE8F59F362414" + }, + { + .addr4 = "51.254.84.212", + .addr6 = "2001:41d0:a:1a3b::18", + .port = 33445, + .idstr = "AEC204B9A4501412D5F0BB67D9C81B5DB3EE6ADA64122D32A3E9B093D544327D" + }, + { + .addr4 = "5.135.59.163", + .addr6 = NULL, + .port = 33445, + .idstr = "2D320F971EF2CA18004416C2AAE7BA52BF7949DB34EA8E2E21AF67BD367BE211" + }, + { + .addr4 = "185.58.206.164", + .addr6 = "2a02:f680:1:1100::3313", + .port = 33445, + .idstr = "24156472041E5F220D1FA11D9DF32F7AD697D59845701CDD7BE7D1785EB9DB39" + }, + { + .addr4 = "128.199.199.197", + .addr6 = "2400:6180:0:d0::17a:a001", + .port = 33445, + .idstr = "B05C8869DBB4EDDD308F43C1A974A20A725A36EACCA123862FDE9945BF9D3E09" + }, + { + .addr4 = "bootybay.club", + .addr6 = NULL, + .port = 33445, + .idstr = "0CB9D8D636F8E3D71CF44A3019408A846B7BEDFA2810853355DB58C0A36BFE38" + }, + { + .addr4 = "91.121.66.124", + .addr6 = "2001:41d0:1:757c::1", + .port = 33445, + .idstr = "4E3F7D37295664BBD0741B6DBCB6431D6CD77FC4105338C2FC31567BF5C8224A" + }, + { + .addr4 = "195.93.190.6", + .addr6 = "2a01:d0:ffff:a8a::2", + .port = 33445, + .idstr = "FB4CE0DDEFEED45F26917053E5D24BDDA0FA0A3D83A672A9DA2375928B37023D" + }, + { + .addr4 = "loki.uplinklabs.net", + .addr6 = "loki.uplinklabs.net", + .port = 33445, + .idstr = "1A56EA3EDF5DF4C0AEABBF3C2E4E603890F87E983CAC8A0D532A335F2C6E3E1F" + }, + { + .addr4 = "95.215.44.78", + .addr6 = "2a02:7aa0:1619::c6fe:d0cb", + .port = 33445, + .idstr = "672DBE27B4ADB9D5FB105A6BB648B2F8FDB89B3323486A7A21968316E012023C" + }, + { + .addr4 = "tox.dzenspace.ru", + .addr6 = "tox.dzenspace.ru", + .port = 33445, + .idstr = "80EF8660D9C5ACE1577BAB031375A0F08284CBFD9F810A857955DCC87377FC4D" + }, + { + .addr4 = "163.172.136.118", + .addr6 = "2001:bc8:4400:2100::1c:50f", + .port = 33445, + .idstr = "2C289F9F37C20D09DA83565588BF496FAB3764853FA38141817A72E3F18ACA0B" + }, + { + .addr4 = "37.97.185.116", + .addr6 = NULL, + .port = 33445, + .idstr = "E59A0E71ADA20D35BD1B0957059D7EF7E7792B3D680AE25C6F4DBBA09114D165" + }, + { + .addr4 = "193.124.186.205", + .addr6 = "2a02:f680:1:1100::542a", + .port = 5228, + .idstr = "9906D65F2A4751068A59D30505C5FC8AE1A95E0843AE9372EAFA3BAB6AC16C2C" + }, + { + .addr4 = "80.87.193.193", + .addr6 = "2a01:230:2:6::46a8", + .port = 33445, + .idstr = "B38255EE4B054924F6D79A5E6E5889EC94B6ADF6FE9906F97A3D01E3D083223A" + }, + { + .addr4 = "initramfs.io", + .addr6 = NULL, + .port = 33445, + .idstr = "3F0A45A268367C1BEA652F258C85F4A66DA76BCAA667A49E770BCC4917AB6A25" + }, + { + .addr4 = "tox.neverlocate.me", + .addr6 = NULL, + .port = 33445, + .idstr = "49183DBF0E865713154069D1C7C7A2732ED78CF32C4D76AF5304FE31C5FEB81A" + }, + { + .addr4 = "shigure.eve.moe", + .addr6 = "shigure.eve.moe", + .port = 33445, + .idstr = "1A480A53FAF2CBBFCC382D786C43E69EEE23F22C7C23A7CFEB6180A373E23E54" + }, + { + .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, + .idstr = "A856243058D1DE633379508ADCAFCF944E40E1672FF402750EF712E30C42012A" + }, + { + .addr4 = "92.54.84.70", + .addr6 = NULL, + .port = 33445, + .idstr = "5625A62618CB4FCA70E147A71B29695F38CC65FF0CBD68AD46254585BE564802" + }, + { + .addr4 = "tox.zodiaclabs.org", + .addr6 = "v6.tox.zodiaclabs.org", + .port = 33445, + .idstr = "A09162D68618E742FFBCA1C2C70385E6679604B2D80EA6E84AD0996A1AC8A074" + }, + { + .addr4 = "195.154.119.113", + .addr6 = "2001:bc8:3698:101::1", + .port = 33445, + .idstr = "E398A69646B8CEACA9F0B84F553726C1C49270558C57DF5F3C368F05A7D71354" + }, + { + .addr4 = "46.101.197.175", + .addr6 = "2a03:b0c0:3:d0::ac:5001", + .port = 443, + .idstr = "CD133B521159541FB1D326DE9850F5E56A6C724B5B8E5EB5CD8D950408E95707" + }, + { + .addr4 = "148.251.23.146", + .addr6 = "2a01:4f8:201:8493::2", + .port = 2306, + .idstr = "7AED21F94D82B05774F697B209628CD5A9AD17E0C073D9329076A4C28ED28147" + }, + { + .addr4 = "zawertun.net", + .addr6 = NULL, + .port = 33445, + .idstr = "5521952892FBD5C185DF7180DB4DEF69D7844DEEE79B1F75A634ED9DF656756E" + }, + { + .addr4 = "toxnode.nek0.net", + .addr6 = "toxnode.nek0.net", + .port = 33445, + .idstr = "20965721D32CE50C3E837DD75B33908B33037E6225110BFF209277AEAF3F9639" + }, + { + .addr4 = "sorunome.de", + .addr6 = "sorunome.de", + .port = 33445, + .idstr = "02807CF4F8BB8FB390CC3794BDF1E8449E9A8392C5D3F2200019DA9F1E812E46" + }, + { + .addr4 = "hibiki.eve.moe", + .addr6 = "hibiki.eve.moe", + .port = 33445, + .idstr = "D3EB45181B343C2C222A5BCF72B760638E15ED87904625AAD351C594EEFAE03E" + }, + { + .addr4 = "tox.deadteam.org", + .addr6 = "tox.deadteam.org", + .port = 33445, + .idstr = "C7D284129E83877D63591F14B3F658D77FF9BA9BA7293AEB2BDFBFE1A803AF47" + }, + { + .addr4 = "maggie.prok.pw", + .addr6 = "maggie.prok.pw", + .port = 33445, + .idstr = "B75583B6D967DB8AD7C6D3B6F9318194BCC79B2FEF18F69E2DF275B779E7AA30" + }, + { + .addr4 = "144.76.60.215", + .addr6 = "2a01:4f8:191:64d6::1", + .port = 33445, + .idstr = "04119E835DF3E78BACF0F84235B300546AF8B936F035185E2A8E9E0A67C8924F" + }, + { + .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 = "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 = "138.201.172.228", + .addr6 = NULL, + .port = 33445, + .idstr = "1B08FC930EE60429B63273CE39068D46316E79A3F7DDAFAD9C8CA65E50047B7A" + } +}; |