summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index b1e89b6..1215ec5 100644
--- a/main.c
+++ b/main.c
@@ -158,10 +158,11 @@ static void do_bootstrap(Tox *tox)
158 j = rand(); 158 j = rand();
159 159
160 int i = 0; 160 int i = 0;
161 while(i < 4) { 161 while(i < 8) {
162 struct bootstrap_node *d = &bootstrap_nodes[j % countof(bootstrap_nodes)]; 162 struct bootstrap_node *d = &bootstrap_nodes[j % countof(bootstrap_nodes)];
163 struct bootstrap_node *r = &tcp_relays[(4*j) % countof(tcp_relays)];
163 tox_bootstrap(tox, d->address, d->port, d->key, 0); 164 tox_bootstrap(tox, d->address, d->port, d->key, 0);
164 tox_add_tcp_relay(tox, d->address, d->port, d->key, 0); 165 tox_add_tcp_relay(tox, r->address, r->port, r->key, 0);
165 i++; 166 i++;
166 j++; 167 j++;
167 } 168 }