From 6e083d2db2d6af2421e5a186fbc0794448f56f04 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 20 Feb 2019 09:06:08 +0100 Subject: [PATCH] Fix add onion logic to handle 127.13.3.7 binding --- src/tor_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tor_ctl.c b/src/tor_ctl.c index 5abda2d..e86d50c 100644 --- a/src/tor_ctl.c +++ b/src/tor_ctl.c @@ -38,7 +38,7 @@ int tor_ctl_add_onion(struct tor_ctl* ctx, struct tor_os_str* tos, uint16_t* por /* Add onion services loaded from file */ for (int i = 0; i < tos->filled; i++) { - fprintf(ctx->wsock, "add_onion %s Port=%d\n", tos->keys[i].priv, port[i]); + fprintf(ctx->wsock, "add_onion %s Port=%d,127.13.3.7:%d\n", tos->keys[i].priv, port[i], port[i]); fscanf(ctx->rsock, "%d", &err); if (err != 250) { printf("err: %d\n", err);