diff options
-rw-r--r-- | testing/toxic/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c index 816873b3..62677515 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c | |||
@@ -88,7 +88,11 @@ int init_connection(void) | |||
88 | if (DHT_isconnected()) | 88 | if (DHT_isconnected()) |
89 | return 0; | 89 | return 0; |
90 | 90 | ||
91 | FILE *fp = fopen("../../../other/DHTservers", "r"); | 91 | #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) && !defined(__CYGWIN__) |
92 | FILE *fp = fopen("DHTservers", "r"); | ||
93 | #else | ||
94 | FILE *fp = fopen("~/.tox/DHTservers", "r"); | ||
95 | #endif | ||
92 | 96 | ||
93 | if (!fp) | 97 | if (!fp) |
94 | return 1; | 98 | return 1; |