mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-29 10:16:45 +02:00
Automatically update DHT nodeslist
List is now automatically fetched from nodes.tox.chat and placed in the user config directory. The list is updated once every 30 days, and will attempt to detect problems and re-fetch the list if necessary. Also fixed a couple file descriptor leaks and cleaned some things up.
This commit is contained in:
@ -33,7 +33,7 @@
|
||||
#include "configdir.h"
|
||||
#include "misc_tools.h"
|
||||
|
||||
/* get the user's home directory */
|
||||
/* get the user's home directory. */
|
||||
void get_home_dir(char *home, int size)
|
||||
{
|
||||
struct passwd pwd;
|
||||
@ -102,8 +102,10 @@ char *get_user_config_dir(void)
|
||||
return user_config_dir;
|
||||
}
|
||||
|
||||
/*
|
||||
* Creates the config and chatlog directories.
|
||||
/* Creates the config and chatlog directories.
|
||||
*
|
||||
* Returns 0 on success.
|
||||
* Returns -1 on failure.
|
||||
*/
|
||||
int create_user_config_dirs(char *path)
|
||||
{
|
||||
|
Reference in New Issue
Block a user