diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 | } |