| 369 | } |
| 370 | |
| 371 | void AddressBook::Start () |
| 372 | { |
| 373 | i2p::config::GetOption("addressbook.enabled", m_IsEnabled); |
| 374 | if (m_IsEnabled) |
| 375 | { |
| 376 | if (!m_Storage) |
| 377 | m_Storage = new AddressBookFilesystemStorage; |
| 378 | m_Storage->Init(); |
| 379 | LoadHosts (); /* try storage, then hosts.txt, then download */ |
| 380 | StartSubscriptions (); |
| 381 | StartLookups (); |
| 382 | ScheduleCacheUpdate (); |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | void AddressBook::StartResolvers () |
| 387 | { |