diff options
Diffstat (limited to 'other/DHT_bootstrap.c')
-rw-r--r-- | other/DHT_bootstrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index 0e95805d..5eae46b9 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c | |||
@@ -181,7 +181,7 @@ int main(int argc, char *argv[]) | |||
181 | int is_waiting_for_dht_connection = 1; | 181 | int is_waiting_for_dht_connection = 1; |
182 | 182 | ||
183 | uint64_t last_LANdiscovery = 0; | 183 | uint64_t last_LANdiscovery = 0; |
184 | LANdiscovery_init(dht); | 184 | lan_discovery_init(dht); |
185 | 185 | ||
186 | while (1) { | 186 | while (1) { |
187 | if (is_waiting_for_dht_connection && DHT_isconnected(dht)) { | 187 | if (is_waiting_for_dht_connection && DHT_isconnected(dht)) { |
@@ -192,7 +192,7 @@ int main(int argc, char *argv[]) | |||
192 | do_DHT(dht); | 192 | do_DHT(dht); |
193 | 193 | ||
194 | if (is_timeout(last_LANdiscovery, is_waiting_for_dht_connection ? 5 : LAN_DISCOVERY_INTERVAL)) { | 194 | if (is_timeout(last_LANdiscovery, is_waiting_for_dht_connection ? 5 : LAN_DISCOVERY_INTERVAL)) { |
195 | send_LANdiscovery(net_htons(PORT), dht); | 195 | lan_discovery_send(net_htons(PORT), dht); |
196 | last_LANdiscovery = unix_time(); | 196 | last_LANdiscovery = unix_time(); |
197 | } | 197 | } |
198 | 198 | ||