diff options
Diffstat (limited to 'src/tools/tor-resolve.c')
-rw-r--r-- | src/tools/tor-resolve.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/tor-resolve.c b/src/tools/tor-resolve.c index a6e4402ce7..f269ee63bb 100644 --- a/src/tools/tor-resolve.c +++ b/src/tools/tor-resolve.c @@ -211,6 +211,11 @@ main(int argc, char **argv) return 1; } + if (network_init()<0) { + log_fn(LOG_ERR,"Error initializing network; exiting."); + return -1; + } + if (do_resolve(arg[0], sockshost, socksport, &result)) return 1; |