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') 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