mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:43:01 +01:00
Standarized DHTservers
This commit is contained in:
parent
5d8ccde3d9
commit
374b7b9c6b
6
main.c
6
main.c
@ -88,7 +88,11 @@ int init_connection(void)
|
|||||||
if (DHT_isconnected())
|
if (DHT_isconnected())
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
FILE *fp = fopen("../../../other/DHTservers", "r");
|
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__)
|
||||||
|
FILE *fp = fopen("DHTservers", "r");
|
||||||
|
#else
|
||||||
|
FILE *fp = fopen("~/.tox/DHTservers", "r");
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!fp)
|
if (!fp)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user