diff options
author | Roger Dingledine <arma@torproject.org> | 2004-12-22 05:29:06 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-12-22 05:29:06 +0000 |
commit | cf17d0d29c9526a0e9b6631693eb2bf0479e655c (patch) | |
tree | f2da64c5808b3120b5422d6e4948f73775976f92 /src/tools | |
parent | 036384fd8eaf83354ed59abec1c9816abd82528c (diff) | |
download | tor-cf17d0d29c9526a0e9b6631693eb2bf0479e655c.tar.gz tor-cf17d0d29c9526a0e9b6631693eb2bf0479e655c.zip |
move network_init from or/main to common/compat
call network_init in tor-resolve.c too
move tor_lookup_hostname from common/util to common/compat
svn:r3203
Diffstat (limited to 'src/tools')
-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; |