From af8cf3fa1402728e46b648d44739ee379fb7f81d Mon Sep 17 00:00:00 2001 From: "psyc://loupsycedyglgamf.onion/~lynX" Date: Sat, 23 Jun 2018 13:30:03 +0000 Subject: rename USER_SERVICE into RUN_PER_USER. thx, tg (#4548a) --- src/util/util.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/util.conf b/src/util/util.conf index f2e5bee28..dbc2b2e0d 100644 --- a/src/util/util.conf +++ b/src/util/util.conf @@ -25,7 +25,7 @@ GNUNET_CACHE_HOME = ${XDG_CACHE_HOME:-$GNUNET_HOME/.cache}/gnunet/ # Runtime data (i.e UNIX domain sockets, locks, always lost on system boot) # This is the variable for system-wide services; use GNUNET_USER_RUNTIME_DIR -# for per-user services (where USER_SERVICE=YES is set) +# for per-user services (where RUN_PER_USER=YES is set) # Note that the 'gnunet'/system user must have $TMPDIR/$TMP set to # exactly the same values as 'normal' users, otherwise this will fail. # If $TMPDIR or $TMP are set to different directories for different -- cgit v1.2.3 From b9e4bb72104b4871bf4443fc8a8fbb21d8c1944c Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 23 Jun 2018 16:32:26 +0200 Subject: ignore hostname if we have unixpath --- src/include/gnunet_gnsrecord_lib.h | 4 ++-- src/util/resolver_api.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/util') diff --git a/src/include/gnunet_gnsrecord_lib.h b/src/include/gnunet_gnsrecord_lib.h index b3f1eb632..20846238b 100644 --- a/src/include/gnunet_gnsrecord_lib.h +++ b/src/include/gnunet_gnsrecord_lib.h @@ -499,10 +499,10 @@ GNUNET_GNSRECORD_pkey_to_zkey (const struct GNUNET_CRYPTO_EcdsaPublicKey *pkey); /** - * Convert an absolute domain name in the ".zkey" pTLD to the + * Convert an absolute domain name to the * respective public key. * - * @param zkey string "X.zkey" where X is the public + * @param zkey string "X" where X is the public * key in an encoding suitable for DNS labels. * @param pkey set to a public key on the eliptic curve * @return #GNUNET_SYSERR if @a zkey has the wrong syntax diff --git a/src/util/resolver_api.c b/src/util/resolver_api.c index b2e6a4986..afebabf08 100644 --- a/src/util/resolver_api.c +++ b/src/util/resolver_api.c @@ -180,6 +180,11 @@ check_config () struct sockaddr_in v4; struct sockaddr_in6 v6; + if (GNUNET_OK == + GNUNET_CONFIGURATION_have_value (resolver_cfg, + "resolver", + "UNIXPATH")) + return GNUNET_OK; memset (&v4, 0, sizeof (v4)); v4.sin_addr.s_addr = htonl (INADDR_LOOPBACK); v4.sin_family = AF_INET; -- cgit v1.2.3