[Pkg-privacy-commits] [onioncat] 199/340: onion domain fixed
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:04:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch debian
in repository onioncat.
commit 5aee8c954e2ee5df98352585e2b798ca424d733c
Author: eagle <eagle at 58e1ccc2-750e-0410-8d0d-f93ca75ab447>
Date: Sat Nov 14 20:40:51 2009 +0000
onion domain fixed
git-svn-id: http://www.cypherpunk.at/svn/onioncat/branches/garlicat@527 58e1ccc2-750e-0410-8d0d-f93ca75ab447
---
configure | 22 +++++++++++-----------
src/ocat.c | 2 +-
src/ocatsocks.c | 5 +++--
3 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/configure b/configure
index 54d805d..4dc3f03 100755
--- a/configure
+++ b/configure
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r526.
+# Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r527.
#
# Report bugs to <rahra at cypherpunk.at>.
#
@@ -596,8 +596,8 @@ SHELL=${CONFIG_SHELL-/bin/sh}
# Identity of this package.
PACKAGE_NAME='onioncat'
PACKAGE_TARNAME='onioncat'
-PACKAGE_VERSION='0.2.0.r526'
-PACKAGE_STRING='onioncat 0.2.0.r526'
+PACKAGE_VERSION='0.2.0.r527'
+PACKAGE_STRING='onioncat 0.2.0.r527'
PACKAGE_BUGREPORT='rahra at cypherpunk.at'
ac_subst_vars='SHELL
@@ -1259,7 +1259,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures onioncat 0.2.0.r526 to adapt to many kinds of systems.
+\`configure' configures onioncat 0.2.0.r527 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1329,7 +1329,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of onioncat 0.2.0.r526:";;
+ short | recursive ) echo "Configuration of onioncat 0.2.0.r527:";;
esac
cat <<\_ACEOF
@@ -1421,7 +1421,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-onioncat configure 0.2.0.r526
+onioncat configure 0.2.0.r527
generated by GNU Autoconf 2.62
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -1435,7 +1435,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by onioncat $as_me 0.2.0.r526, which was
+It was created by onioncat $as_me 0.2.0.r527, which was
generated by GNU Autoconf 2.62. Invocation command line was
$ $0 $@
@@ -2084,7 +2084,7 @@ fi
# Define the identity of the package.
PACKAGE='onioncat'
- VERSION='0.2.0.r526'
+ VERSION='0.2.0.r527'
cat >>confdefs.h <<_ACEOF
@@ -2235,7 +2235,7 @@ ac_config_headers="$ac_config_headers config.h"
cat >>confdefs.h <<\_ACEOF
-#define SVN_REVISION "526"
+#define SVN_REVISION "527"
_ACEOF
@@ -5208,7 +5208,7 @@ exec 6>&1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by onioncat $as_me 0.2.0.r526, which was
+This file was extended by onioncat $as_me 0.2.0.r527, which was
generated by GNU Autoconf 2.62. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -5261,7 +5261,7 @@ Report bugs to <bug-autoconf at gnu.org>."
_ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_version="\\
-onioncat config.status 0.2.0.r526
+onioncat config.status 0.2.0.r527
configured by $0, generated by GNU Autoconf 2.62,
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
diff --git a/src/ocat.c b/src/ocat.c
index 4e0a5fc..b63d38c 100644
--- a/src/ocat.c
+++ b/src/ocat.c
@@ -378,7 +378,7 @@ int main(int argc, char *argv[])
if (!has_tor_prefix(&CNF(ocat_addr)))
log_msg(LOG_ERR, "address does not have TOR prefix"), exit(1);
ipv6tonion(&CNF(ocat_addr), CNF(onion_url));
- printf("%s.onion\n", CNF(onion_url));
+ printf("%s%s\n", CNF(onion_url), NDESC(domain));
exit(0);
}
diff --git a/src/ocatsocks.c b/src/ocatsocks.c
index 8fbf22a..3a8f56c 100644
--- a/src/ocatsocks.c
+++ b/src/ocatsocks.c
@@ -41,7 +41,7 @@ int socks_send_request(const SocksQueue_t *sq)
SocksHdr_t *shdr = (SocksHdr_t*) buf;
ipv6tonion(&sq->addr, onion);
- strlcat(onion, ".onion", sizeof(onion));
+ strlcat(onion, NDESC(domain), sizeof(onion));
log_msg(LOG_INFO, "trying to connect to \"%s\" [%s]", onion, inet_ntop(AF_INET6, &sq->addr, buf, SOCKS_BUFLEN));
log_debug("doing SOCKS4a handshake");
@@ -257,10 +257,11 @@ void socks_output_queue(FILE *f)
strlcpy(addrstr, "ERROR", INET6_ADDRSTRLEN);
}
- snprintf(buf, SIZE_1K, "%d: %39s, %s.onion, state = %d, %s(%d), retry = %d, connect_time = %d, restart_time = %d",
+ snprintf(buf, SIZE_1K, "%d: %39s, %s%s, state = %d, %s(%d), retry = %d, connect_time = %d, restart_time = %d",
i,
addrstr,
ipv6tonion(&squeue->addr, onstr),
+ NDESC(domain),
squeue->state,
squeue->perm ? "PERMANENT" : "TEMPORARY",
squeue->perm,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onioncat.git
More information about the Pkg-privacy-commits
mailing list