mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Spellchecked everything
This commit is contained in:
parent
885e5898c5
commit
bffc3d96e5
|
@ -56,6 +56,6 @@ grep "tox_dht_bootstrap_server_daemon" /var/log/syslog
|
||||||
|
|
||||||
3. Make sure that `PIDFILE` from `/etc/init.d/tox_dht_bootstrap_server_daemon` matches with the `pid_file_path` from `conf`
|
3. Make sure that `PIDFILE` from `/etc/init.d/tox_dht_bootstrap_server_daemon` matches with the `pid_file_path` from `conf`
|
||||||
|
|
||||||
4. Make sure you have write premmision to keys and pid files
|
4. Make sure you have write permission to keys and pid files
|
||||||
|
|
||||||
5. Make sure you have read premission to config file
|
5. Make sure you have read permission for config file
|
|
@ -4,7 +4,7 @@
|
||||||
port = 33445
|
port = 33445
|
||||||
|
|
||||||
// The key file is like a password, so keep it where no one can read it
|
// The key file is like a password, so keep it where no one can read it
|
||||||
// The daemon should have premission to read/write to it
|
// The daemon should have permission to read/write to it
|
||||||
// Remember to replace the provided example with
|
// Remember to replace the provided example with
|
||||||
// your own path
|
// your own path
|
||||||
keys_file_path = "/home/tom/.tox_dht_bootstrap_server_daemon/keys"
|
keys_file_path = "/home/tom/.tox_dht_bootstrap_server_daemon/keys"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tox_dht_bootstrap_server_daemon
|
/* tox_dht_bootstrap_server_daemon
|
||||||
*
|
*
|
||||||
* A simple DHT boostrap server for tox - daemon edition.
|
* A simple DHT bootstrap server for tox - daemon edition.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014 Tox project All Rights Reserved.
|
* Copyright (C) 2014 Tox project All Rights Reserved.
|
||||||
*
|
*
|
||||||
|
@ -83,7 +83,9 @@ int manage_keys(DHT *dht, char *keys_file_path)
|
||||||
|
|
||||||
keys_file = fopen(keys_file_path, "w");
|
keys_file = fopen(keys_file_path, "w");
|
||||||
|
|
||||||
if (fwrite(keys, sizeof(uint8_t), KEYS_SIZE, keys_file) != KEYS_SIZE) {
|
size_t write_size = fwrite(keys, sizeof(uint8_t), KEYS_SIZE, keys_file);
|
||||||
|
|
||||||
|
if (write_size != KEYS_SIZE) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,7 +97,7 @@ int manage_keys(DHT *dht, char *keys_file_path)
|
||||||
|
|
||||||
// Gets general config options
|
// Gets general config options
|
||||||
//
|
//
|
||||||
// Important: you are responsibl for freeing `pid_file_path` and `keys_file_path`
|
// Important: you are responsible for freeing `pid_file_path` and `keys_file_path`
|
||||||
//
|
//
|
||||||
// returns 1 on success
|
// returns 1 on success
|
||||||
// 0 on failure, doesn't modify any data pointed by arguments
|
// 0 on failure, doesn't modify any data pointed by arguments
|
||||||
|
@ -181,7 +183,7 @@ int get_general_config(char *cfg_file_path, char **pid_file_path, char **keys_fi
|
||||||
// Bootstraps servers listed in the config file
|
// Bootstraps servers listed in the config file
|
||||||
//
|
//
|
||||||
// returns 1 on success
|
// returns 1 on success
|
||||||
// 0 on failure, either no or only some servers were bootstraped
|
// 0 on failure, either no or only some servers were bootstrapped
|
||||||
|
|
||||||
int bootstrap_from_config(char *cfg_file_path, DHT *dht, int enable_ipv6)
|
int bootstrap_from_config(char *cfg_file_path, DHT *dht, int enable_ipv6)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user