diff --git a/src/donar_server.c b/src/donar_server.c index 6f93804..e5f8ffb 100644 --- a/src/donar_server.c +++ b/src/donar_server.c @@ -33,7 +33,8 @@ void init_tcp_servers(struct donar_server_ctx* ctx) { int err, sock = 0; for (int i = 0; i < PORT_SIZE; i++) { sprintf (buffer, "%d", ctx->ports[i]); - sock = create_tcp_server ("127.13.3.7", buffer); + //@FIXME shouldn't listen on 0.0.0.0 but 127.13.3.7 is not compatible with docker + sock = create_tcp_server ("0.0.0.0", buffer); if (sock < 0) goto socket_create_err; err = listen(sock, SOMAXCONN); if (err != 0) goto socket_create_err; diff --git a/src/tor_ctl.c b/src/tor_ctl.c index e86d50c..a253370 100644 --- a/src/tor_ctl.c +++ b/src/tor_ctl.c @@ -52,6 +52,7 @@ int tor_ctl_add_onion(struct tor_ctl* ctx, struct tor_os_str* tos, uint16_t* por /* Complete by creating new onion services */ for (int i = tos->filled; i < tos->size; i++) { fprintf(ctx->wsock, "add_onion NEW:ED25519-V3 Port=%d\n", port[i]); + //fprintf(ctx->wsock, "add_onion NEW:RSA1024 Port=%d\n", port[i]); fscanf(ctx->rsock, "%d", &err);