diff --git a/src/meas_lat.c b/src/meas_lat.c index 2672ef4..c29d67a 100644 --- a/src/meas_lat.c +++ b/src/meas_lat.c @@ -486,6 +486,7 @@ int main(int argc, char** argv) { struct evt_core_ctx evts = {0}; struct tor_os_str tos = {0}; struct tor_ctl tctl = {0}; + tctl.os_endpoint = "127.0.0.1"; // 1. Parse parameters while ((opt = getopt(argc, argv, "vq:h:p:c:s:i:t:ln")) != -1) { diff --git a/src/tor_echo.c b/src/tor_echo.c index aa445ac..2d078ea 100644 --- a/src/tor_echo.c +++ b/src/tor_echo.c @@ -97,6 +97,7 @@ int main(int argc, char** argv) { uint16_t port = 7500; struct tor_os_str tos; struct tor_ctl tctl; + tctl.os_endpoint = "127.0.0.1"; enum TOR_ONION_FLAGS tof = TOR_ONION_FLAG_NONE; char url[1024]; struct torecho_ctx tctx = {0};