1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-19 00:16:35 +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:
Jfreegman
2016-09-20 00:00:09 -04:00
parent 1f8c11a33a
commit a009f11c0c
15 changed files with 440 additions and 144 deletions

View File

@ -2,12 +2,12 @@
.\" Title: toxic
.\" Author: [see the "AUTHORS" section]
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
.\" Date: 2015-12-07
.\" Date: 2016-04-25
.\" Manual: Toxic Manual
.\" Source: toxic __VERSION__
.\" Language: English
.\"
.TH "TOXIC" "1" "2015\-12\-07" "toxic __VERSION__" "Toxic Manual"
.TH "TOXIC" "1" "2016\-04\-25" "toxic __VERSION__" "Toxic Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@ -82,8 +82,7 @@ Show help message
.RS 4
Use specified
\fInodes\-file\fR
for DHT bootstrap nodes, instead of
\fI__DATADIR__/DHTnodes\fR
for DHT bootstrap nodes, instead of the default
.RE
.PP
\-o, \-\-noconnect
@ -122,9 +121,10 @@ Unencrypt a data file\&. A warning will appear if this option is used with a dat
.RE
.SH "FILES"
.PP
__DATADIR__/DHTnodes
~/\&.config/tox/DHTnodes
.RS 4
Default list of DHT bootstrap nodes\&.
Default location for list of DHT bootstrap nodes (list obtained at
https://nodes\&.tox\&.chat)\&. This list is automatically updated every 30 days\&.
.RE
.PP
~/\&.config/tox/toxic_profile\&.tox

View File

@ -41,8 +41,7 @@ OPTIONS
Show help message
-n, --nodes nodes-file::
Use specified 'nodes-file' for DHT bootstrap nodes, instead of
'{datadir}/DHTnodes'
Use specified 'nodes-file' for DHT bootstrap nodes, instead of the default
-o, --noconnect::
Do not connect to the DHT network
@ -68,8 +67,9 @@ OPTIONS
FILES
-----
{datadir}/DHTnodes::
Default list of DHT bootstrap nodes.
~/.config/tox/DHTnodes::
Default location for list of DHT bootstrap nodes (list obtained at https://nodes.tox.chat).
This list is automatically updated every 30 days.
~/.config/tox/toxic_profile.tox::
Savestate which contains your personal info (nickname, Tox ID, contacts,