summaryrefslogtreecommitdiff
path: root/testing/Messenger_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/Messenger_test.c')
-rw-r--r--testing/Messenger_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c
index f8685b39..c76584d7 100644
--- a/testing/Messenger_test.c
+++ b/testing/Messenger_test.c
@@ -48,6 +48,7 @@
48#include <unistd.h> 48#include <unistd.h>
49#include <arpa/inet.h> 49#include <arpa/inet.h>
50#define c_sleep(x) usleep(1000*x) 50#define c_sleep(x) usleep(1000*x)
51#define PORT 33445
51 52
52#endif 53#endif
53 54
@@ -106,7 +107,7 @@ int main(int argc, char *argv[])
106 IP_Port bootstrap_ip_port; 107 IP_Port bootstrap_ip_port;
107 bootstrap_ip_port.port = htons(atoi(argv[2])); 108 bootstrap_ip_port.port = htons(atoi(argv[2]));
108 bootstrap_ip_port.ip.i = inet_addr(argv[1]); 109 bootstrap_ip_port.ip.i = inet_addr(argv[1]);
109 DHT_bootstrap(bootstrap_ip_port, hex_string_to_bin(argv[3])); 110 DHT_bootstrap(m->dht, bootstrap_ip_port, hex_string_to_bin(argv[3]));
110 } else { 111 } else {
111 FILE *file = fopen(argv[1], "rb"); 112 FILE *file = fopen(argv[1], "rb");
112 113